summaryrefslogtreecommitdiff
path: root/qa/qa.rb
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-07-09 15:40:46 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-07-09 15:40:46 +0000
commit7d97102f72d6e85546cd317a96655ca3b20d34d2 (patch)
treede197c36949dda50ac874ee97ca35dbf285a6bf2 /qa/qa.rb
parentebcf92c585f063f48270c38ef9a8745bbe23c804 (diff)
downloadgitlab-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.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index 10d44b6f6d9..be73776425b 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -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'