News for hackers. Stuff that matters.
Re:What ORMs have taught me: just learn SQL (2014) by philwelch on Friday September 20, 2019 @07:40PM (#21032407)
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.

There are no comments on this comment yet.