OK
я вот пока придумал 3 варианта -
We can run tests against some special env with temporary db that will be destroyed after tests finished
Run tests against dev env, and just wipe dev DB from time to time
Prepare some special cleanup scripts after tests, that will track what data were created during test, and remove it from db, but i afraid it is a lot of maintenance for such scripts and still no confidence that they will not corrupt data or clean all test data
Может есть что-то еще я забыл?