November 2024
Intermediate to advanced
300 pages
7h 12m
English
Full-fledged Java IDEs (for example, IntelliJ IDEA or Eclipse) have built-in support for JUnit. Out of the box, you can load a project, click on its test directory, and execute tests without having to configure anything. You saw in Chapter 1, Building Your First JUnit Test at least a couple of ways to run JUnit tests from within IntelliJ IDEA. In the following sections, you’ll see how the number of tests you run affects your results.
If your tests are fast (see Fast Tests), it’s possible to run thousands of unit tests within a few seconds. When you have fast tests, you can run all of them with every tiny change. If you broke something elsewhere in the codebase, you’ll know it immediately. ...
Read now
Unlock full access