Skip to content

Gitlab coverage highlights

Edmundo Ferreira requested to merge gitlab_coverage_highlights into development

Description

Add extra xml format to pytesc-cov so that gitlab can show what parts of the MR code was tested.

This should help avoid discussions if tests are covering specific MR code changes.

Also adds 2 decimal precision to coverage output so that we can more easily track if we add code without tests even on small MRs.

Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Issue(s)

Implements nice easy feature to see coverage in gitlab MRs Was implemented following https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html#python-example.

Related MRs

Testing

New pipelines on this MR https://gitlab.com/qblox/packages/software/qblox_instruments/-/jobs/4408143664 Now show 2 decimal values: image Has does the banner image

The MR highlights have been test on another dummy MR I made on top of @mgarcia7293 work that originated this MR image

Notes

Merge checklist

  • Cleaned up code (correct alligment/spacing/code-style, no dead code, etc).
  • Merge request targets development branch.
  • Assigned assignee (you) and reviewers (team-members).
  • Merge request has been reviewed by at least one team-members.
  • All pipelines pass, including manually triggered ones.
Edited by Edmundo Ferreira

Merge request reports