6 ms·
I have a bad habit of writing a mondo-super-all-encompassing test, and I have to break it up when I realize it’s a house of cards. I think the better rule is “
by code_runner 4y ago
I have a bad habit of writing a mondo-super-all-encompassing test, and I have to break it up when I realize it’s a house of cards.
I think the better rule is “just test one thing, don’t use a lot of overlapping assertions between tests”.
Number of assertions, as noted by this post and this comment section, is not a smell at all.