diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-07-09 15:40:46 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-07-09 15:40:46 +0000 |
commit | 7d97102f72d6e85546cd317a96655ca3b20d34d2 (patch) | |
tree | de197c36949dda50ac874ee97ca35dbf285a6bf2 /qa/qa.rb | |
parent | ebcf92c585f063f48270c38ef9a8745bbe23c804 (diff) | |
download | gitlab-ce-7d97102f72d6e85546cd317a96655ca3b20d34d2.tar.gz |
Run tests in parallel via parallel_tests
Uses the parallel_tests gem to execute tests in multiple processes
simultaneously on the same machine.
Adds the `--parallel` CLI option that instructs the QA framework
to use the parallel_tests executable.
Tests need access to global state contained in `Runtime::Scenario`
so when `--parallel` is invoked `Runtime::Scenario` is serialized
to an environment variable, which is passed to parallel_tests,
and then deserialized in `spec_helper`.
Diffstat (limited to 'qa/qa.rb')
-rw-r--r-- | qa/qa.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -360,6 +360,7 @@ module QA module Specs autoload :Config, 'qa/specs/config' autoload :Runner, 'qa/specs/runner' + autoload :ParallelRunner, 'qa/specs/parallel_runner' module Helpers autoload :Quarantine, 'qa/specs/helpers/quarantine' |