Hacker News new | past | comments | ask | show | jobs | submit login

I don’t mind coverage in CI except when someone fails builds based on reductions in coverage percent, because it ends up squashing refactoring and we want people doing more of that not less.

Sometimes very well covered code is dead code. If it has higher coverage than the rest of the project, then deleting it removes for example 1000 lines of code at 99% coverage, which could reduce the overall by .1%.

And even if it wasn’t 99% when you started, rewriting modules often involves first adding pinning tests, so replacing 1000 lines with 200 new could first raise the coverage percent and then drop it again at the end.

There are some things in CI/CD that should be charts not failures and this is one.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: