3 ms·
Mandate from Above: "All code that is checked in must have seventy percent code coverage" Developer Response: Keep tests the way they are. Puff up shipping cod
by kabdib 10y ago
Mandate from Above: "All code that is checked in must have seventy percent code coverage"
Developer Response: Keep tests the way they are. Puff up shipping code by adding layers that just check and transpose arguments; enough of these layers and you get your 70% metric of code that's basically guaranteed not to have issues, and check in.
My response, trying to take that stuff and port it: Rip out about 75% of the junk code while cursing clueless management and developers who, ultimately, didn't write very good tests (none of the tests ran anyway, because they required an elaborate lab setup that involved undocumented APIs, installs of binaries meant for OSes that were nearly end-of-life, a SQL server and a bunch of other shit infrastructure. Beware test environment creep).