|
|
|
|
|
by nimblegorilla
2475 days ago
|
|
Seems like 50% coverage is better than 0% coverage and 75% coverage is better than 50% coverage. The author argues about the horrors of going from 80% to 79.9%, but I don't see how that is any different from the suggestion to explicitly exclude code. The excluded code is still in the gray area of code that is included but not covered by tests. What happens when someone starts making breaking changes to excluded code? |
|
You... don't. You un-exclude it first, and then, because of the rule, you're not allowed to commit the code until you write the tests that bring it back up to 100% coverage. Then you make breaking changes.