I create some integration testsuites with suite.suite. Each test in testsuite insert some data, witch deletes after test finished:
func (s *myTestSuite) TeardownTest() { s.db.Exec("delete from myTable") }
I expect tests to be executed one after another, so cleaning TeardownTest
provide isolation. By tests intersect sometimes. Are tests working in parallel? Transaction with rollback after test seems nice to handle this issue. Is it?
Aucun commentaire:
Enregistrer un commentaire