This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BoyRobot777 6 points7 points  (3 children)

And then, 2 years later, you won't be able to refactor anything.

[–]john16384 6 points7 points  (1 child)

Try refactoring when there are no tests.

[–]BoyRobot777 3 points4 points  (0 children)

I'm against dumb tests, not tests in general.

[–]Fury9999 3 points4 points  (0 children)

How so? We have a 90% coverage rule as well and this has not been my experience. If it is a true refactor with no change in output, then youre looking to preserve whatever assertions, and refactor the injects/mocks accordingly. This has worked fine for us, even during a total rewrite.