Details
-
New Feature
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
Description
Let's look into running test-libmongoc in parallel to speed it up. Fork each test into its own process, both for parallelization and so we can continue testing after a failure. Some points:
- All of the mock server tests should be easily parallelizable
- The live tests could have conflicts with collection and database names. Use gen_test_database() and gen_test_collection() to get around this.
- To work properly, gen_test_database() must be updated to include the pid.
- failpoints are a global shared state so there needs to be a way to mark tests as non-parallelizable.
- The test runner needs to collect tests into a parallel phase and a serial phase and run tests accordingly.