?test_dir
says
Test files start with ‘test’ and are executed in alphabetical order (but they shouldn't have dependencies). Helper files start with ‘helper’ and loaded before any tests are run.
So, use helper files. i.e. create a file with a name that begins with "helper" and put in it the code that you need to run before running all the tests.