News for hackers. Stuff that matters.
Re:Stop requiring only one assertion per unit test: Multiple... by jjav on Saturday November 05, 2022 @04:39PM (#33485435)
> when the test fails it will be harder to know what actually happened

This should not ever be possible in any semi-sane test environment.

One could in theory write a single test function with thousands of asserts for all kinds of conditions and it still should be 100% obvious which one failed when something fails. Not that I'd suggest going to that extreme either, but it illustrates that it'll work fine.

There are no comments on this comment yet.