alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agoWho did this onelemmy.worldimagemessage-square18fedilinkarrow-up1629arrow-down111
arrow-up1618arrow-down1imageWho did this onelemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square18fedilink
minus-squareandrew@lemmy.stuart.funlinkfedilinkEnglisharrow-up42·1 year agoif !strings.Contains(notification.Text, "People are") { t.Fatal("notification text wrong") } Test coverage maintained. 👈😎👈
minus-squareRedjard@lemmy.dbzer0.comlinkfedilinkarrow-up16·1 year agoif !strings.Contains(makeNotification($hot_search_word).Text, '${hot_search_word}') { t.Fatal("notification text wrong") } Wrote the test boss
minus-square______linkfedilinkarrow-up3·edit-21 year agoGood work. Now explain to me why this test passed in CI but is clearly broken in production.
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.