I maintain a tool that acts as a JUnit5 platform test runner.
When it is supplied with Spock tests, I'd like to prevent them from running in parallel, regardless of the options set by the user.
For Jupiter tests this can be done by setting a system property
junit.jupiter.execution.parallel.enabled = false
Although spock accepts a property named runner.parallel.enabled
in its configuration file, it does not look like this can be overriden by anything at the system level.
Is there a simple way to prevent parallel execution without having to make changes to a project's configuration?
Can this somehow be done in a generic way for anything using the junit5 platform?