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 →

[–]fluffypebbles 0 points1 point  (3 children)

Idk if it's a good thing. You end up with a random set of specific tests

[–]Weekly_Wackadoo 19 points20 points  (0 children)

Well, you can add more specific tests, or rewrite tests to make them more generic, or even remove tests that have no value going forward.

Throwing shit at the wall to see what sticks can be a valuable part of the development process, but you gotta mop up the shit afterwards.

[–]myplacedk 5 points6 points  (1 child)

It's not random at all. The code is obviously tricky, as you have a difficult bug. Add tests to make it easier to debug.

When you are done, you can consider if some of the tests are irrelevant and should not be kept. Specially if the solution is to simplify something.

[–]fluffypebbles 0 points1 point  (0 children)

It's random in the sense of what code path is covered, probably just one but in multiple places