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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
aff780c4
Commit
aff780c4
authored
May 01, 2019
by
Blair Lunceford
Committed by
Evan Read
May 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example for the artifacts:paths section
parent
d80b3439
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/ci/junit_test_reports.md
doc/ci/junit_test_reports.md
+4
-2
No files found.
doc/ci/junit_test_reports.md
View file @
aff780c4
...
@@ -71,11 +71,11 @@ merge request widget.
...
@@ -71,11 +71,11 @@ merge request widget.
NOTE:
**Note:**
NOTE:
**Note:**
If you also want the ability to browse JUnit output files, include the
If you also want the ability to browse JUnit output files, include the
[
`artifacts:paths`
](
yaml/README.md#artifactspaths
)
keyword.
[
`artifacts:paths`
](
yaml/README.md#artifactspaths
)
keyword.
An example of this is shown in the Ruby example below.
### Ruby example
### Ruby example
Use the following job in
`.gitlab-ci.yml`
:
Use the following job in
`.gitlab-ci.yml`
. This includes the
`artifacts:paths`
keyword to provide a link to the JUnit output file.
```
yaml
```
yaml
## Use https://github.com/sj26/rspec_junit_formatter to generate a JUnit report with rspec
## Use https://github.com/sj26/rspec_junit_formatter to generate a JUnit report with rspec
...
@@ -85,6 +85,8 @@ ruby:
...
@@ -85,6 +85,8 @@ ruby:
-
bundle install
-
bundle install
-
rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
-
rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
artifacts
:
artifacts
:
paths
:
-
rspec.xml
reports
:
reports
:
junit
:
rspec.xml
junit
:
rspec.xml
```
```
...
...
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