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

> Mocking is faster and often feels more straightforward.

This makes it a unit test.

> However, testing against a real database uncovers hidden pitfalls that can appear as the application matures.

This makes real-database testing not a unit test. Maybe it's integration testing.

So basically the author is against unit tests (or isn't quite sure of the difference from integration testing)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: