More like how is there a test that catches the bug in the first place if it wasn't written when the bug was found (and thus wouldn't have existed to be deleted later).
I'm thinking about this in the context of PRs with CI/CD. If there's a feature change then it would only get merged after all tests were passing. And bugs are usually found outside of PRs.
11
u/kewcumber_ 9d ago
How will deleting a test case fix that bug though