DEV Community

Discussion on: How do you measure your test coverage?

Collapse
 
stilldreaming1 profile image
still-dreaming-1 • Edited

Each of my tests enforces its own independent coverage rules for what code it needs to cover, and it needs to cover those things 100% or the test fails. This allows for strict coverage where you want it, but leaves all of that up to the judgement of the test writer. So some tests are not required to cover anything, while others might be required to independently achieve 100% coverage of multiple classes under test.