Test isolation
Test isolation means each test controls the state it creates and leaves no unwanted data behind, so tests do not depend on execution order or other tests. Database tests can use a private database per test or isolate fixtures in a shared database by recording generated IDs and cleaning up only their own rows.
Learn this concept
Lesson 2.18 · HTTP integration tests with MySQL fixturesUsed in exercises
Exercise 2.19 · Restaurant list integration suite Exercise 2.24 · GET /v1/restaurants: search by name Exercise 2.26 · GET /v1/restaurants: sort by distanceRelatedIntegration test