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
5fb044b0
Commit
5fb044b0
authored
Aug 31, 2018
by
Maastiff
Committed by
Achilleas Pipinellis
Sep 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update junit_test_reports.md by providing new example for java, using gradle build tool
parent
990278be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
doc/ci/junit_test_reports.md
doc/ci/junit_test_reports.md
+20
-0
No files found.
doc/ci/junit_test_reports.md
View file @
5fb044b0
...
...
@@ -100,3 +100,23 @@ golang:
reports
:
junit
:
report.xml
```
### Java examples
#### Gradle
Use the following job in
`.gitlab-ci.yml`
:
```
yaml
java
:
stage
:
test
script
:
-
gradle test
artifacts
:
reports
:
junit
:
build/test-results/test/TEST-*.xml
```
If you define multiple tasks of kind test, it will generate multiple directories
under
`build/test-results/`
directory.
To address all subdirectory at once, you can leverage regex matching by defining following
path:
`build/test-results/test/TEST-*.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