diff options
author | Rémy Coutable <remy@rymai.me> | 2018-09-26 08:22:26 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-09-26 08:22:26 +0000 |
commit | c7fcb01b8adf988e2e10e63979507d99bedba163 (patch) | |
tree | f2cccee16bd70c5aa6d5736748f23228f69f9d8d | |
parent | ab760054ee8f80d06e8552114d51bfd7103d21ee (diff) | |
parent | 4eaa3932acf46d822838ac9813023dc6bb6ee9d0 (diff) | |
download | gitlab-ce-c7fcb01b8adf988e2e10e63979507d99bedba163.tar.gz |
Merge branch 'merge-cpp-junit-documentation-update' into 'master'
Added cpp documentation for junit integration.
See merge request gitlab-org/gitlab-ce!21916
-rw-r--r-- | doc/ci/junit_test_reports.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/ci/junit_test_reports.md b/doc/ci/junit_test_reports.md index cf22450914c..3fd54647abb 100644 --- a/doc/ci/junit_test_reports.md +++ b/doc/ci/junit_test_reports.md @@ -140,6 +140,27 @@ java: - 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 Currently, the following tools might not work because their XML formats are unsupported in GitLab. |