I’m attempting to set up our team’s first GitLab CI pipeline, and I’m running into trouble with our unit tests. I’ve managed to get our tests to output in JUnit format, but despite using artifacts:reports:junit in our .gitlab-ci.yml file, the Test tab is not showing up on the Pipeline screen.
We’re using self-hosted GitLab, Community Edition 11.11.3. Here’s the relevant portion of our .gitlab-ci.yml:
test:
stage: test
script:
- '& Scripts\Powershell\findAndRunUnitTests.ps1 -sln DummyApp.Svc.sln -resultFormat ";transform=lib\nunit\nunit3-junit.xslt"'
artifacts:
when: always
expire_in: 1 day
paths:
- lib\nunit\Reports\test-report*.xml
reports:
junit: lib\nunit\Reports\test-report-junit.xml
And the relevant output in the job:
Uploading artifacts...
Runtime platform arch=amd64 os=windows pid=82544 revision=2ebc4dc4 version=13.9.0
lib\nunit\Reports\test-report-junit.xml: found 1 matching files and directories
Uploading artifacts as "junit" to coordinator... ok id=9971 responseStatus=201 Created token=RKRjA2Yg
Any idea why the Tests tab isn’t showing up?