3 ms·
I really don't get the position that a test that is potentially harder to write (because mocks) and catches fewer bugs (because mocks) but takes 0.1 seconds to
by pydry 6y ago
I really don't get the position that a test that is potentially harder to write (because mocks) and catches fewer bugs (because mocks) but takes 0.1 seconds to run instead of 3 seconds is intrinsically "better".
I really think this is a cultural thing.
- tchaffee 6y agoIt's not intrinsically better. It's just a different type of test. And which type of test you want to use and when is going to be based on your goals as an organization. 5000 unit tests times 3 seconds is 4 hours, isn't it? Compared to 9 minutes in the former case. That matters in some organizations.