© Adam L. Davis 2020
Adam L. DavisModern Programming Made Easyhttps://doi.org/10.1007/978-1-4842-5569-8_14

14. Testing

Adam L. Davis
(1)
Oviedo, FL, USA
 
Testing is a very important part of the software creation process. Without automated tests, it’s very easy for bugs to creep into software.
In fact, some go as far as to say that you should write tests before you write the code. This is called TDD (test-driven development).
There are multiple test frameworks and tools to help you test your code. This book will cover some of these tools, JUnit and Spock.

Types of Tests

The following are different types of tests you might write:
  • Unit test: Test conducted on a single API call or some isolated code or component
  • Integration test: Test of a larger system that ...

Get Modern Programming Made Easy: Using Java, Scala, Groovy, and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.