Hacker News new | ask | show | jobs
by knodi123 3046 days ago
> I'm convinced that unit tests don't usually find bugs.

At work, I've rejected many merge requests with the comment "this unit test is equivalent to verifying a checksum of the method source". It's so frustrating that people still think it's necessary to write things like this literally real example:

expect(User::MAX_PASSWORD_RESET_ATTEMPTS).to eq(3)

1 comments

That's an education problem which is not an intractable problem to solve over time by mentoring the code author.