I don't think so, to be honest.
Jul 7, 2020
6
Level 6
Can I specify a database connection for an individual unit test?
My test suite currently has 67 tests and 167 assertions. If I run the tests in a SQLite memory database, the tests run in less than 20 seconds. If I run them in MySQL, they take a lot longer, so I'd prefer to run all the tests that I can using the SQLite memory database.
However, I have a table that contains spatial data, and SQLite doesn't support spatial data. I want to run tests on that model and table using the MySQL driver. Can I specify the MySQL database connection for an individual unit test while running the rest in SQLite?
Please or to participate in this conversation.