Parallelize and clean up tests
jayrbolton opened this issue · comments
The password hashing functions and some other things are slow, and the full test suite takes almost 60s to run. Maybe we could split the tests into separate files and run them in parallel. The trick will be to aggregate exit codes in all the child processes. Maybe there is a package for doing this? Possibly this: https://github.com/DiegoRBaquero/bogota
Also considering whether I should run tests sequentially and reuse the previously created userA
and userB
in tests to save time, rather than re-creating all the users for every single test.