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

Using a DB inside your unit tests is an antipattern and arguably a violation of the concept of a unit test in the first place.

Integration tests should run against a test environment, otherwise, what integration are you testing? I don't see the value in writing integration tests that test the integration between my code and a one-off integration test DB that exists solely for the purpose of integration testing.



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

Search: