Running parallel tests on Scrutinizer is very easy.
When you have already set-up your test commands, you can simply add the
on_node modifier to your test commands:
# .scrutinizer.yml build: dependencies: before: - pecl install ssh-beta tests: override: - command: phpunit tests/FolderA on_node: 1 - command: phpunit tests/FolderB on_node: 2 - command: phpunit tests/FolderC on_node: 3
This configuration will execute your tests with 3-way parallelism, each of the test commands will be run in a separate container. The commands of other sections will be executed in all containers.
Processing code coverage will work just as before when you were running just a single command. Scrutinizer automatically handles merging your data and does not require you to make any additional configuration.