by Aeolun · 4y ago · 0 comments
You should take that as a sign you need to rewrite the code you’ve just written, but a lot of people don’t want to trash all (or part of) their hard work and instead bend the tests so that they deal with the code.
You now have bad code, and you have bad/fragile tests.
I think TDD (when enforced) is mostly meant to prevent people from falling for that.