4 ms·
Same like mocking databases; yes they make your tests run faster and more “pure”, but you’re suddenly not really testing reality anymore.
by stingraycharles 1y ago
Same like mocking databases; yes they make your tests run faster and more “pure”, but you’re suddenly not really testing reality anymore.
- boomlinde 1y agoSure, but they're not mutually exclusive approaches. Having tests that run in a couple of seconds thanks to low I/O and cheap scaffolding setup/teardown can be a valuable addition to slower, comprehensive system and integration test suites.
- actionfromafar 1y agoAnd you can spot differences between your understanding of reality (test mockups) and how it behaves on the real filesystem. (In this case.)