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/Gemfile | |
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/Gemfile')
-rw-r--r-- | qa/Gemfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/Gemfile b/qa/Gemfile index 12994b85322..c46be8a0362 100644 --- a/qa/Gemfile +++ b/qa/Gemfile @@ -1,5 +1,6 @@ source 'https://rubygems.org' +gem 'gitlab-qa' gem 'pry-byebug', '~> 3.5.1', platform: :mri gem 'capybara', '~> 2.16.1' gem 'capybara-screenshot', '~> 1.0.18' @@ -11,3 +12,4 @@ gem 'nokogiri', '~> 1.10.3' gem 'rspec-retry', '~> 0.6.1' gem 'faker', '~> 1.6', '>= 1.6.6' gem 'knapsack', '~> 1.17' +gem 'parallel_tests', '~> 2.29' |