feat(merge-request): visualize coverage delta on MR widget
What does this MR do?
This MR adds the coverage delta (difference between the coverage recorded on the source branch vs target branch) to the merge request view.
It is only visible if the coverage for both target/source branch was recorded. The coverage delta is coloured based on the type of change (increase/decrease).
While this feature is quite a minute detail on the merge request page, it is essential to quickly identify, if a merge request degrades the test coverage.
Replaces gitlab-foss!10722 (closed)
Closes #14405 (closed)
Screenshots
No change:
Coverage increased:
Coverage decreased:
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry - [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
documentation: I haven't found any existing documentation regarding visualisation of coverage on merge requests. Due to that and the fact that the coverage delta text is quite easy to understand, I didn't add any documentation.
UX: This MR implements a really basic version of the coverage delta visualisation, but I think this is good enough as an initial version. WDYT?
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [-] 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