Commit 7b222329 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'rw/junit-duplicate-key-doc' into 'master'

Documenting duplicate named tests not supported in junit feature

See merge request gitlab-org/gitlab!39524
parents 8fc5347f f90b76a8
...@@ -66,10 +66,6 @@ execution time and the error output. ...@@ -66,10 +66,6 @@ execution time and the error output.
## How to set it up ## How to set it up
NOTE: **Note:**
For a list of supported languages on JUnit tests, check the
[Wikipedia article](https://en.wikipedia.org/wiki/JUnit#Ports).
To enable the JUnit reports in merge requests, you need to add To enable the JUnit reports in merge requests, you need to add
[`artifacts:reports:junit`](pipelines/job_artifacts.md#artifactsreportsjunit) [`artifacts:reports:junit`](pipelines/job_artifacts.md#artifactsreportsjunit)
in `.gitlab-ci.yml`, and specify the path(s) of the generated test reports. in `.gitlab-ci.yml`, and specify the path(s) of the generated test reports.
...@@ -80,9 +76,11 @@ collects the JUnit test report from each job. After each job is executed, the ...@@ -80,9 +76,11 @@ collects the JUnit test report from each job. After each job is executed, the
XML reports are stored in GitLab as artifacts and their results are shown in the XML reports are stored in GitLab as artifacts and their results are shown in the
merge request widget. merge request widget.
To make the JUnit output files browsable, include them with the
[`artifacts:paths`](yaml/README.md#artifactspaths) keyword as well, as shown in the [Ruby example](#ruby-example).
NOTE: **Note:** NOTE: **Note:**
If you also want the ability to browse JUnit output files, include the You cannot have multiple tests with the same name and class in your JUnit report.
[`artifacts:paths`](yaml/README.md#artifactspaths) keyword. An example of this is shown in the Ruby example below.
### Ruby example ### Ruby example
......
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