Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
232098fb
Commit
232098fb
authored
Apr 03, 2020
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yaml spacing
parent
23b78718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
doc/ci/junit_test_reports.md
doc/ci/junit_test_reports.md
+9
-9
No files found.
doc/ci/junit_test_reports.md
View file @
232098fb
...
...
@@ -87,8 +87,8 @@ Use the following job in `.gitlab-ci.yml`. This includes the `artifacts:paths` k
ruby
:
stage
:
test
script
:
-
bundle install
-
rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
-
bundle install
-
rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
artifacts
:
paths
:
-
rspec.xml
...
...
@@ -105,8 +105,8 @@ Use the following job in `.gitlab-ci.yml`:
golang
:
stage
:
test
script
:
-
go get -u github.com/jstemmer/go-junit-report
-
go test -v 2>&1 | go-junit-report > report.xml
-
go get -u github.com/jstemmer/go-junit-report
-
go test -v 2>&1 | go-junit-report > report.xml
artifacts
:
reports
:
junit
:
report.xml
...
...
@@ -127,7 +127,7 @@ matching by defining the following path: `build/test-results/test/**/TEST-*.xml`
java
:
stage
:
test
script
:
-
gradle test
-
gradle test
artifacts
:
reports
:
junit
:
build/test-results/test/**/TEST-*.xml
...
...
@@ -143,7 +143,7 @@ reports, use the following job in `.gitlab-ci.yml`:
java
:
stage
:
test
script
:
-
mvn verify
-
mvn verify
artifacts
:
reports
:
junit
:
...
...
@@ -160,7 +160,7 @@ for JUnit:
pytest
:
stage
:
test
script
:
-
pytest --junitxml=report.xml
-
pytest --junitxml=report.xml
artifacts
:
reports
:
junit
:
report.xml
...
...
@@ -181,7 +181,7 @@ will then be aggregated together.
cpp
:
stage
:
test
script
:
-
gtest.exe --gtest_output="xml:report.xml"
-
gtest.exe --gtest_output="xml:report.xml"
artifacts
:
reports
:
junit
:
report.xml
...
...
@@ -210,7 +210,7 @@ Test:
-
./**/*test-result.xml
reports
:
junit
:
-
./**/*test-result.xml
-
./**/*test-result.xml
```
## Limitations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment