3 ms·
With database I meant an instance of whatever database engine you are using, not the actual data. My current project uses mssql. Each test run probably spins u
by dagss 7y ago
With database I meant an instance of whatever database engine you are using, not the actual data.
My current project uses mssql. Each test run probably spins up and destroys 100 databases (inside one mssql docker container that is spun up for each test run). Each test function populates a DB from scratch (using the same sql migration scripts that we have used in prod), runs the test, drops the database.
Can do that quite some times in the minute it takes to run the full suite.
Point is to actually execute the SQL (or whatever NoSQL you use) as part of the test.