Docs - product feedback: Unit test reports from CUnit
Problem to solve
Test reports from CUnit do not show up in the CI/CD pipeline test results.
Further details
I have mixed Java/C project, built using Maven. For Java, surefire is used to generate test reports. For C, CUnit is used.
I have followed the instructions in https://docs.gitlab.com/ee/ci/unit_test_reports.html,
and while the Java tests are included in the pipeline test results, the C ones are not.
I generate both the *-Listing.xml
and the *-Results.xml
files from CUnit. I can see from the job log
that the files are indeed picked up:
dbproducer/target/surefire-reports/TEST-*.xml: found 2 matching files and directories
CHlog/target/test-nar/test-reports/Test*.xml: found 2 matching files and directories
Uploading artifacts as "junit" to coordinator... ok id=1352345556 responseStatus=201 Created token=xCTmdywN
First line refers to Java, the second to C.
Proposal
Update documentation to correctly specify how CUnit test reports should be handled in the CI/CD configuration.