Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
gitlab-ce
Commits
5fb044b0
Unverified
Commit
5fb044b0
authored
6 years ago
by
Maastiff
Committed by
Achilleas Pipinellis
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update junit_test_reports.md by providing new example for java, using gradle build tool
parent
990278be
Changes
1
Hide 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`
This diff is collapsed.
Click to expand it.
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