Hi,
We have an API which uses Postgres as a database and some other third party services like Stripe etc. Now we want to do some integration testing to cover the entire API
As per docs we can start mocking, but we also wanted to ensure queries are executed correctly so we decided to do testing against a real database
the problem is with each test suite, the database state can be polluted, so for each test suite we may wanna re-run migrations and start fresh. and to speed up testing we may wanna do parallel testing as well
are there any good guidelines to follow in this scenario?