Chapter 6What to Test: The Right-BICEP

It can be hard to look at a method or a class and anticipate all the bugs that might be lurking in there. With experience, you develop a feel for what’s likely to break and learn to concentrate on testing those areas first. Until then, uncovering possible failure modes can be frustrating. End users are quite adept at finding our bugs, but that’s embarrassing and damaging to our careers! What we need are guidelines to help us understand what’s important to test.

Your Right-BICEP provides you with the strength needed to ask the right questions about what to test:

Right

Are the results right?

B

Are all the boundary conditions correct?

I

Can you check inverse relationships?

C

Can you cross-check results using other ...

Get Pragmatic Unit Testing in Java 8 with JUnit now with O’Reilly online learning.

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