0

For each test case, I clean all tables in database using the teardown method. Unfortunately, this method is not called after test case execution when the tests run in parallel, resulting in database errors.

The test steps are: Create database -> Test1 -> Tear down -> Test2 -> Tear down -> Test3 -> Tear down -> Drop database

Angelo Mendes
  • 905
  • 13
  • 24
  • Make each test only clean their own data without affecting other tests data (maybe tests can be done in temporal tables, and each test creates it's own temporal table). Otherwise don't run the test in parallel if they affect data that other tests need –  Oct 13 '22 at 12:54

0 Answers0