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
Léo-Paul Géneau
gitlab-ce
Commits
4eaa3932
Commit
4eaa3932
authored
Sep 25, 2018
by
Shaun Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cpp documentation for junit integration.
parent
4d4522c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
doc/ci/junit_test_reports.md
doc/ci/junit_test_reports.md
+21
-0
No files found.
doc/ci/junit_test_reports.md
View file @
4eaa3932
...
@@ -140,6 +140,27 @@ java:
...
@@ -140,6 +140,27 @@ java:
-
target/failsafe-reports/TEST-*.xml
-
target/failsafe-reports/TEST-*.xml
```
```
### C/C++ example
There are a few tools that can produce JUnit reports in C/C++.
#### GoogleTest
In the following example,
`gtest`
is used to generate the test reports.
If there are multiple gtest executables created for different architectures (
`x86`
,
`x64`
or
`arm`
),
you will be required to run each test providing a unique filename. The results
will then be aggregated together.
```
yaml
cpp
:
stage
:
test
script
:
-
gtest.exe --gtest_output="xml:report.xml"
artifacts
:
reports
:
junit
:
report.xml
```
## Limitations
## Limitations
Currently, the following tools might not work because their XML formats are unsupported in GitLab.
Currently, the following tools might not work because their XML formats are unsupported in GitLab.
...
...
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