alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 3 years agoWho did this onelemmy.worldimagemessage-square19linkfedilinkarrow-up1630arrow-down111
arrow-up1619arrow-down1imageWho did this onelemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 3 years agomessage-square19linkfedilink
minus-squareandrew@lemmy.stuart.funlinkfedilinkEnglisharrow-up42·3 years agoif !strings.Contains(notification.Text, "People are") { t.Fatal("notification text wrong") } Test coverage maintained. 👈😎👈
minus-squareredjard@lemmy.dbzer0.comlinkfedilinkarrow-up16·3 years agoif !strings.Contains(makeNotification($hot_search_word).Text, '${hot_search_word}') { t.Fatal("notification text wrong") } Wrote the test boss
minus-square______@lemm.eecakelinkfedilinkarrow-up3·edit-23 years 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.