Commit 6b156b7a authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

RSpec tests: introducing "scopes" in parallel runs

The new `HEPTAPOD_RSPEC_SCOPE` will be used to define several
subsets of tests to run.

The default is what we are currently
running in CI for everyday development (Merge Requests on
`heptapod` and `heptapod-stable` branches).

The 'extended' scope will be used in release preparation, and
will grow a lot from now on.

--HG--
branch : heptapod
parent 20544f19c65b
......@@ -6,6 +6,13 @@
#export CI_NODE_TOTAL=2
#export CI_NODE_INDEX=0
export KNAPSACK_TEST_FILE_PATTERN="spec/{lib/gitlab,lib/gitlab/mercurial/*,lib/gitlab/*_access*,lib/gitlab/git/*,mailers/emails/pipelines,models/user,models/merge_request_*,models/compare,models/commit_*,models/ci/job_*,models/ci/pipeline*,models/*wiki*,services/projects/update_remote_mirror_service,services/projects/create_service,helpers/application_settings_helper,helpers/vcs_type_helper}_spec.rb"
if [ "$HEPTAPOD_RSPEC_SCOPE" = "extended" ]; then
KNAPSACK_TEST_FILE_PATTERN="spec/{lib/gitlab,lib/gitlab/*,lib/gitlab/**/*,mailers_emails/pipelines,models/merge_request_*,models/compare,models/commit_*,models/ci/job_*,models/ci/pipeline*,models/*wiki*,services/projects/update_remote_mirror_service,services/projects/create_service,helpers/application_settings_helper,helpers/vcs_type_helper}_spec.rb"
else
KNAPSACK_TEST_FILE_PATTERN="spec/{lib/gitlab,lib/gitlab/mercurial/*,lib/gitlab/*_access*,lib/gitlab/git/*,mailers/emails/pipelines,models/user,models/merge_request_*,models/compare,models/commit_*,models/ci/job_*,models/ci/pipeline*,models/*wiki*,services/projects/update_remote_mirror_service,services/projects/create_service,helpers/application_settings_helper,helpers/vcs_type_helper}_spec.rb"
fi
export KNAPSACK_TEST_FILE_PATTERN
export KNAPSACK_REPORT_PATH="knapsack/rspec.json"
knapsack rspec "-Ispec --color --format d --tag ~quarantine --tag ~geo --tag ~level:migration"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment