DEV Community

Discussion on: Why test POJOs?

Collapse
 
aminmansuri profile image
hidden_dude

Code coverage is a measure of test badness.. if you have low coverage you can know that your tests are probably bad. If you have high coverage you haven't found any obvious badness. But you still could be bad.

This is the same with testing in general. Testing is there to find bugs. If you don't find any bugs that doesn't mean you don't have bugs. But if you do, you've detected "badness".

Neat right?