Reputation: 1105
I would like to set the regular expression for my test coverage results.
According to Gitlab's documentation, I should be able to do that in the test coverage parsing setting in my project settings, by navigating to Settings > CI/CD > General pipelines
.
However, I cannot find the setting there. Where can I set the regular expression for the test coverage parsing setting in Gitlab?
Upvotes: 9
Views: 6248
Reputation: 1105
Since Gitlab 14.8, the test coverage parsing setting has been deprecated and has been removed since Gitlab 15.0. The setting can therefore no longer be found in Settings > CI/CD > General pipelines
.
You should now use the coverage
setting in your Gitlab CI/CD configuration file and use your regular expression in the setting value:
Example:
unit-test:
stage: test
coverage: '/coverage: \d+.\d+% of statements/'
script:
- go test -cover
Upvotes: 31