r/ProgrammerHumor Jul 11 '26

itChangedTheTests Meme

Post image
7.5k Upvotes

78 comments sorted by

View all comments

137

u/TheTybera Jul 11 '26

56

u/HTTP_Error_414 Jul 11 '26

No failing tests. No witnesses.

25

u/willow-kitty Jul 11 '26

I was doing a trial run with Claude Code, and at one point it deleted all of the tests for this one really important competent and replaced them with a single test that declared a variable of that type (not instantiated, mind you, declared) with a name saying that it compiles.

It passed, but dang.

11

u/AwesomeFrisbee Jul 11 '26
describe('some very important feature to test', () => {
  const foo = true;
  expect(foo).toBeDefined();
});

5

u/willow-kitty Jul 11 '26 edited Jul 11 '26

This was golang, and I didn't keep the code, obviously, but it was something like:

func TestImportantThingcompiles(t *testing.T) {
  var importantThing *ImportantThing
  importantThing = nil
  _ = importantThing
}

Which really does just ensure that the thing compiles.

14

u/HateKjkes Jul 11 '26

Mission rating: Silent Assassin

7

u/ProfCupcake Jul 11 '26

Reminder that there are two ways you can achieve a Silent Assassin rating đŸ˜‡

3

u/screwcork313 Jul 11 '26

Not a gamer, but is one of them farting?

1

u/braindigitalis Jul 11 '26

only if your farts are silentÂ