Stop test run on failure

By default, Scrutinizer continues to run all commands in the tests section so that you can find all potential failures in a single run.

If you would like to instead abort a test run immediately after the first command fails, you can define stop_on_failure either for the entire tests section, or alternatively for specific commands only:

build:
    nodes:
        my-parallel-tests:
            tests:
                # If true, tests execution will stop by any command failure.
                stop_on_failure: true

                override:
                    -
                        command: phpunit tests/FolderA
                        stop_on_failure: true    # If true, tests execution will stop when this command failed.
                        on_node: 1

                    -
                        command: phpunit tests/FolderB
                        on_node: 2

                    -
                        command: phpunit tests/FolderC
                        on_node: 3