Re:Ask HN: Seriously, how do you TDD?
by mbrodersen on Tuesday September 06, 2022 @10:06PM
(#32745576)
Not my experience at all. I can only safely refactor major parts of the large complex C++ software I am maintaining because of the tests.
If you can’t refactor your code without breaking tests then your tests are testing implementation details and not higher level specification details. Your tests should test your usecases not your implementation details.
In other words, if you can’t refactor your code without breaking your tests then you are doing automatic testing wrong. It’s that simple.
If you can’t refactor your code without breaking tests then your tests are testing implementation details and not higher level specification details. Your tests should test your use cases not your implementation details.
In other words, if you can’t refactor your code without breaking your tests then you are doing automatic testing wrong. It’s that simple.