Skip to content

ci: use gotestsum and add junit test reports

Jaime Martinez requested to merge test-add-junit-report into master

We introduced using gotestsum in GitLab Pages some time ago with gitlab-pages!528 (merged).

I like that we can expose a JUnit report that can be rendered in the MR directly or in pipelines. This also helps as Dogfooding for the CI Unit test reports feature!

It also helps giving you a quick way to read which test failed, without having to load the full job log to find out what happened.

See sample job with only one test failing https://gitlab.com/gitlab-org/container-registry/-/jobs/2483376020

Edited by Jaime Martinez

Merge request reports