O'Reilly logo

Testing with JUnit by Frank Appel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up an automated CI build

JUnit tests are only valuable if they are executed regularly. This section explains the general purpose of continuous integration builds, which ascertains a high test execution frequency. Hence, CI constitutes a very good match to the test first approach.

What is continuous integration?

In Chapter 1, Getting Started, we mentioned the importance of immediate feedback with respect to unit testing. If we bust some low-level functionality, we want to know about it as soon as possible. This puts us in a position to detect and correct a problem as it evolves and avoid expensive quality assurance cycles. Because of this, it's good practice to run all tests at least once after merging and before checking in changes into ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required