Overview
This document explains and demonstrates where and how Chrome Extension presents Untested Code Changes (aka Quality Risks) in an overlay over Pull Request lists and individual Pull Requests.
The Chrome Extension implemantation replaces the current PR Integration that is done with SCM (e.g. Github) API. The current implementation is limited to SCMs that provide this functionality, and is subject to how the SCM injects the data we provide into the page. The Chrome Extension implementation mitigates these limitations.
Requirements
Configuration (onboarding) that includes reporting PR data can be found here: Analyzing Pull Requests with SeaLights
Data Overlays
The illustrations here are from Github cloud, but this feature is supported on all popular SCM platforms (Github, Bitbucket, Gitlab, TFS, VSTS).
Pull Request List
Each Pull Request that Sealights has UCC data on, is annotatted with the number of UCCs in the PR. This number is an aggregate of all the UCCs in all commits included in this PR, and of all coverage types (methods/branch/lines) supported in the repository.
When the mouse is over the annotation, the annotation expands and shows the full description of the UCCs.
Pull Request
When drilling down to a single Pull Request, The UCCs data is displayed in the File changed tab. This tab shows the full list of changed files from all commits, and reflects the changes up to and including the latest commit.
Sealighst toolbar shows the following metrics:
Test Stage selection drop-down
Coverage %
Number of UCCs
The metrics reflect the selected test stage, and the coverage type that can be one of the following:
A single coverage type (method OR branch OR line)
All coverage types (in case the repository includes metrics of multiple coverage types). In this case the coverage % will show value per coverage type, and the UCC count will show the sum of all UCCs of all coverage types.
Each code line that is identified as UCC will be annotated by a red diamond as illustarted below:
Toolbar Configuration
Clicking the vertical ellipsis on the toolbar right end, will show a small popup where the user can select the following:
File annotations contrast: when selected the annotations in the code will appear dark
Coverage type: any individual type that is supported, or All