goconvey
goconvey copied to clipboard
Disable concurrency
Hello, I would like to know if there is an option to disable concurrency in goconvey
I m trying to test a database access object, different tests are running on the same database. Two different tests are not supposed to run at the same time (for example: I don't want one test to drop a table while another test is adding an user to this table.) Having one database per test works, but its not really what I would call "ideal"
Your best options:
- for simpler cases, use an in memory DB (like SQLite) that is so cheap to initialize and manipulate, it doesn't matter if you rebuild it for each test file
- for complex cases, use a transactional database and rollback whatever changes at the end of each test block