Re:Stop requiring only one assertion per unit test: Multiple...
by smhoff256 on Saturday November 05, 2022 @09:35AM
(#33481321)
The reason for one assert pet test is that it forces you to test one thing at a time. It sets your mind in the mode of single responsibility.
[ Parent
| on HN ]
Re:Stop requiring only one assertion per unit test: Multiple...
by marcosdumay on Saturday November 05, 2022 @10:33AM
(#33481852)
And what is the gain from testing a single thing at a time?
On a specific case, what is the gain from not testing the pre and post-conditions of your important test?