Skip to content

Added support for test coverage badge color configuration

Istvan Szabo requested to merge szaboi/gitlab:28317-coverage-limit-config into master

What does this MR do?

Enables users to further parameterise the test coverage badges to adjust the colour to their liking.
Currently the badge colors are hardcoded and undocumented

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

  1. Pick any project that has test coverage data stored
  2. Go to add badge
  3. Use the new parameters (limit_good, limit_acceptable, limit_medium) to adjust color thresholds
  4. Validate the badge color

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #28317 (closed)

Edited by Istvan Szabo

Merge request reports