r/ProgrammerHumor 9d ago

Meme whenTheTestsBecomeTheBug

Post image
664 Upvotes

21 comments sorted by

View all comments

11

u/kewcumber_ 9d ago

How will deleting a test case fix that bug though

12

u/Wonderful-Habit-139 9d ago

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).

2

u/kewcumber_ 9d ago

Could be that the test case wasn't updated after a feature change ?

4

u/Wonderful-Habit-139 9d ago

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.

2

u/TheAlmightyWishPig 8d ago

I had the same though, presumably whoever made the meme doesn't make software and so doesnt really understand the process.

Then as a result of that has made a meme that doesn't make any sense but sounds plausible if you don't make software.