3 ms·
The trouble is that the type of developer that blindly follows this sort of shaming/advice is exactly the type that blindly followed someone's rule of thumb to
by gorjusborg 4y ago
The trouble is that the type of developer that blindly follows this sort of shaming/advice is exactly the type that blindly followed someone's rule of thumb to use one assertion per test.
There are no hard and fast rules.
I agree with keeping the number of assertions low, but it isn't the number that matters. Keeping the number of assertions low helps prevent the 'testItWorks()' syndrome.
Oh, it broke, I guess 'it does not work' time to read a 2000 line test written 5 years ago.