I have a bunch of tests for my DBIx :: Class , and I'm using Test :: DBIx :: Class . This is great as it gives me useful test functions and loads. It also has the Test :: mysqld property, so I can dynamically create a test instance of mysqld, deploy the schema, load instruments and test. But if I have a bunch of test scripts, it seems silly to start the server, deploy and load devices at the beginning of each script when creating an instance through the constructor.
What is the best way to create a test database and populate it for the duration of my tests?
source share