Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Same like mocking databases; yes they make your tests run faster and more “pure”, but you’re suddenly not really testing reality anymore.


Sure, 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.


And you can spot differences between your understanding of reality (test mockups) and how it behaves on the real filesystem. (In this case.)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: