Add SimpleCov for code coverage
What does this MR do and why?
I wanted to see if the code in lib/tasks/release.rake
is covered by tests.
!3098 (diffs, comment 1124641964)
This MR adds coverage collection and reporting for Ruby tests following https://docs.gitlab.com/ee/ci/pipelines/settings.html#merge-request-test-coverage-results
Also enables coverage visualization according to https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html
Screenshots, screen recordings, or links to review app
rspec
doesn't report coverage stats currently - https://gitlab.com/abitrolly/gitlab-docs/-/jobs/3130150611
How to set up and validate locally
-
Open this MR in Gitpod -
Run rspec
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.