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
070e8829
Commit
070e8829
authored
Jun 01, 2021
by
Meindert-Jan Kroese
Committed by
Evan Read
Jun 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PHPUnit example for generating junit output
parent
353657f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/ci/unit_test_reports.md
doc/ci/unit_test_reports.md
+19
-0
No files found.
doc/ci/unit_test_reports.md
View file @
070e8829
...
...
@@ -307,6 +307,25 @@ test:
-
report.xml
```
### PHP example
This example uses
[
PHPUnit
](
https://phpunit.de/
)
with the
`--log-junit`
flag.
You can also add this option using
[
XML
](
https://phpunit.readthedocs.io/en/stable/configuration.html#the-junit-element
)
in the
`phpunit.xml`
configuration file.
```
yaml
phpunit
:
stage
:
test
script
:
-
composer install
-
vendor/bin/phpunit --log-junit report.xml
artifacts
:
when
:
always
reports
:
junit
:
report.xml
```
## Viewing Unit test reports on GitLab
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/24792) in GitLab 12.5 behind a feature flag (`junit_pipeline_view`), disabled by default.
...
...
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