Hacker News new | ask | show | jobs
by almostnormal 534 days ago
> [...] I remember this one dev who was super obsessed about code coverage [...]

Oh, you are lucky. Where I work that's the person who defines how to test and which tools to use. Look at the code, create tests to paint everything green. Whether the code actually works does not matter. I don't think these tests have ever caught any kind of bug. That isn't even their purpose.

> So I don’t even know who to blame here.

Money. If tests can be written without understanding what the code is supposed to do, they can be written by people who do not understand. Which appears to be the cheapest way to get passing tests. Not to find any bugs, but that's not what the process requires.