News for hackers. Stuff that matters.
Re:Stop requiring only one assertion per unit test: Multiple... by zmj on Saturday November 05, 2022 @03:07PM (#33484585)
I’ll disagree with this. Every time I’ve seen that, the interference between tests was also possible between requests in production. I’d rather my test framework give me a 2% chance of noticing the bug than 0%.
Re:Stop requiring only one assertion per unit test: Multiple... by regularfry on Saturday November 05, 2022 @05:00PM (#33485687)
What's annoying is not being able to reproduce the 2% cases so you can't fix it even when you've noticed them. Sensible test tools give you the random seed they used to order the tests so you can reproduce the sequence.