3 ms·
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.
by smhoff256 4y ago
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.
- marcosdumay 4y agoAnd 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?