This statement made me think: "The database should be part of the tests. Do not stub it".
Databases are both 1) complex piece of software and 2) hard to stub.
5-10 years ago having a database for testing was expensive.
Today you don't need to pay licenses for most databases, and you can spin a disposable one in a container. Easier than mocking the DB itself.
Databases are both 1) complex piece of software and 2) hard to stub. 5-10 years ago having a database for testing was expensive. Today you don't need to pay licenses for most databases, and you can spin a disposable one in a container. Easier than mocking the DB itself.