Commit 3a4d3dff authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'junit-results' into 'master'

Enable JUnit results for rspec

See merge request gitlab-org/gitlab-ce!21449
parents afb49b04 789fae50
...@@ -77,3 +77,4 @@ eslint-report.html ...@@ -77,3 +77,4 @@ eslint-report.html
/plugins/* /plugins/*
/.gitlab_pages_secret /.gitlab_pages_secret
package-lock.json package-lock.json
/junit_rspec.xml
...@@ -171,7 +171,7 @@ stages: ...@@ -171,7 +171,7 @@ stages:
- '[[ -f $FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${FLAKY_RSPEC_REPORT_PATH}' - '[[ -f $FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${FLAKY_RSPEC_REPORT_PATH}'
- '[[ -f $NEW_FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${NEW_FLAKY_RSPEC_REPORT_PATH}' - '[[ -f $NEW_FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${NEW_FLAKY_RSPEC_REPORT_PATH}'
- scripts/gitaly-test-spawn - scripts/gitaly-test-spawn
- knapsack rspec "--color --format documentation" - knapsack rspec "--color --format documentation --format RspecJunitFormatter --out junit_rspec.xml"
artifacts: artifacts:
expire_in: 31d expire_in: 31d
when: always when: always
...@@ -180,6 +180,8 @@ stages: ...@@ -180,6 +180,8 @@ stages:
- knapsack/ - knapsack/
- rspec_flaky/ - rspec_flaky/
- tmp/capybara/ - tmp/capybara/
reports:
junit: junit_rspec.xml
.rspec-metadata-pg: &rspec-metadata-pg .rspec-metadata-pg: &rspec-metadata-pg
<<: *rspec-metadata <<: *rspec-metadata
......
...@@ -389,6 +389,7 @@ group :test do ...@@ -389,6 +389,7 @@ group :test do
gem 'sham_rack', '~> 1.3.6' gem 'sham_rack', '~> 1.3.6'
gem 'concurrent-ruby', '~> 1.0.5' gem 'concurrent-ruby', '~> 1.0.5'
gem 'test-prof', '~> 0.2.5' gem 'test-prof', '~> 0.2.5'
gem 'rspec_junit_formatter'
end end
gem 'octokit', '~> 4.9' gem 'octokit', '~> 4.9'
......
...@@ -770,6 +770,9 @@ GEM ...@@ -770,6 +770,9 @@ GEM
rspec-core rspec-core
rspec-set (0.1.3) rspec-set (0.1.3)
rspec-support (3.7.1) rspec-support (3.7.1)
rspec_junit_formatter (0.2.3)
builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0)
rspec_profiling (0.0.5) rspec_profiling (0.0.5)
activerecord activerecord
pg pg
...@@ -1143,6 +1146,7 @@ DEPENDENCIES ...@@ -1143,6 +1146,7 @@ DEPENDENCIES
rspec-rails (~> 3.7.0) rspec-rails (~> 3.7.0)
rspec-retry (~> 0.4.5) rspec-retry (~> 0.4.5)
rspec-set (~> 0.1.3) rspec-set (~> 0.1.3)
rspec_junit_formatter
rspec_profiling (~> 0.0.5) rspec_profiling (~> 0.0.5)
rubocop (~> 0.54.0) rubocop (~> 0.54.0)
rubocop-rspec (~> 1.22.1) rubocop-rspec (~> 1.22.1)
......
...@@ -779,6 +779,8 @@ GEM ...@@ -779,6 +779,8 @@ GEM
rspec-core rspec-core
rspec-set (0.1.3) rspec-set (0.1.3)
rspec-support (3.7.1) rspec-support (3.7.1)
rspec_junit_formatter (0.4.1)
rspec-core (>= 2, < 4, != 2.12.0)
rspec_profiling (0.0.5) rspec_profiling (0.0.5)
activerecord activerecord
pg pg
...@@ -1154,6 +1156,7 @@ DEPENDENCIES ...@@ -1154,6 +1156,7 @@ DEPENDENCIES
rspec-rails (~> 3.7.0) rspec-rails (~> 3.7.0)
rspec-retry (~> 0.4.5) rspec-retry (~> 0.4.5)
rspec-set (~> 0.1.3) rspec-set (~> 0.1.3)
rspec_junit_formatter
rspec_profiling (~> 0.0.5) rspec_profiling (~> 0.0.5)
rubocop (~> 0.54.0) rubocop (~> 0.54.0)
rubocop-rspec (~> 1.22.1) rubocop-rspec (~> 1.22.1)
......
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