Green Is Good
Understand the importance of keeping all JUnit unit tests passing to isolate bugs quickly and maintain sanity. Learn strategies to manage slow tests, run fast feedback cycles, and use JUnit annotations like Categories and @Ignore to organize and optimize your test execution.
All green, all of the time!
We should normally expect that all our tests pass all of the time. In practice, that means that when we introduce a bug, only one or two tests fail. Isolating the problem is usually pretty easy in such an environment.
...
Do not continue adding features when there are failing tests! Fix any test as soon as it fails, and keep all tests passing all of the time. “All green all of the ...