20 karma · joined Sep 26, 2013 (13y ago) · 15 submissions
comment 12y ago · link · parent
comment 12y ago · link · parent
Those things all need to be tested, but if a single unit test fails, it's nice to know that it failed because the code was wrong, not because the database connection happened to die just then. If I have one test for the logic, and another that verifies that the database can be connected to, and a third that verifies the schema is right, then the specific combination of failing tests tells me a lot more about what's wrong and if my code even needs to be changed.
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent