Who did this one

alphacyberranger@lemmy.world to Programmer Humor@programming.dev – 612 points –
18

You are viewing a single comment

Gotta love no unit tests

if !strings.Contains(notification.Text, "People are") {
  t.Fatal("notification text wrong")
}

Test coverage maintained. 👈😎👈

if !strings.Contains(makeNotification($hot_search_word).Text, '${hot_search_word}') {
  t.Fatal("notification text wrong")
}

Wrote the test boss

Good work. Now explain to me why this test passed in CI but is clearly broken in production.