Looking for some general pointers on how to handle tests that trigger implicit commits in MySQL especially with the parallel testing.
I have them in a separate folder so that I can apply a different TestCase to them that doesn't apply the transactions to the connections. However, because the tests are all run in parallel, and some parts of the implicit commit tests affect the database tables that the other tests depend/use, I end up failing other tests because the table data is persisted in the implicit tests and hasn't been cleaned up by those tests.
How do other people handle these kind of tests?
Ideally I'd like to keep them in the test suite - they do prove some important functionality - and I'd like to run them in parallel too.
As I'm testing against databases that are persisted between tests (normally, or rebuilt at the start of the test suite run if they don't exist), do i need to set up additional databases that are specific to these tests so that there's no crossover?
Any pointers would be appreciated.