Test tab not showing up in pipelines

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?

Hi @ethompson thanks for posting and welcome to the forum!

The Unit Test Report feature was not introduced until 12.5 and made generally available in 13.3.

The Test Summary Report in the MR will show the changes in tests compared to the latest artifact from the target branch. That feature was introduced in 11.2.

I hope this helps!

-James H, GitLab Product Manager, Verify:Testing

1 Like