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

14. Testing

Adam L. Davis1 
(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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.