semgrep / testo

Test framework for OCaml
ISC License
16 stars 1 forks source link

Add option to force a test to run alone #96

Closed mjambon closed 4 weeks ago

mjambon commented 4 weeks ago

Running tests in parallel using multiprocessing is nice because it finishes faster but some tests can't run concurrently with other tests. Supporting an option ~solo:true or similar would force such tests to run while no other test is running. Other tests could still run in parallel with one another.

I've been struggling to adapt our existing test suite in semgrep because some tests apparently can't run in parallel but it's not easy to see why. This new option should allow me to run most tests in parallel and have someone else later worry about the tests that can't run in parallel.