Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Test Plans>Code Coverage Protector
Code Coverage Protector

Code Coverage Protector

Dave Smits

|
4,382 installs
| (14) | Free
Show a trend line graph on your dashboard and use the included build task to get a firm grip and insight on your code coverage.
Get it free

Code Coverage Protector

Code Coverage Protector helps you to keep your code coverage under control. To make this possible this extension contains a widget to show the trend on dashboards and a build task to enforce code coverage policies.

Widget

Large Tile Widget

With the widget you can get an insight into the code coverage results of your most recent builds. Simply add the widget to a dashboard and configure the size, what build definition to monitor, how many builds you want to show, if you want to enable the labels and show tooltips or not.

1x1 Widget

1x1 Tile Widget

If you've got a lot of build definitions you want to show the 1x1 tile might be what you are looking for. Just add them to your dashboard and because they only take 1x1 space per instance you can add many of them to get a fast overview.

We are actively working on making this feature even better in the upcoming sprints!

Build Task

Build Task

The build task makes sure that the code coverage percentage is the same or higher then the latest successful build. You can also set a target value (e.g. like 85%). In that case the code coverage may become lower than the previous build but not get any lower than the set target value.

Simply add the Code Coverage Protector build task to your definition. But do make sure you place it after you published the code coverage results.

Use the build task in a PR validation build

A great way to use this build task is to use it in a build that validates a pull request. This way you can avoid code merged that doesn't comply to your code coverage policy. Code Coverage Protector will compare the code coverage of the pull request with that of the latest successful build. The task uses the default branch of the build definition.

Release notes

09 June 2018

  • When you select the 1x1 tile for the dashboard and click on the maximize button to show the lightbox/modal version of the widget, we now show the trend graph in the lightbox/modal instead of just waisting a lot of room with only the information from the 1x1 version :-)

06 June 2018

  • Feature request: Added the option to also include partially succeeded builds in the graph. You can configure this from the widget configuration page.
  • Included a 1x1 widget title with just the score of the latest code coverage result. Handy if you want to place many tiles on the same dashboard to get a nice overview of all your code coverages.
  • We now show a default graph if the tile hasn't been configured yet.

20 April 2018

  • Only show successful builds in the chart. This avoids gaps in the chart

15 December 2017

  • To help you to get even more grip on your code coverage we added a new build task to this extension that will help you validate your code coverage percentage.

04 December 2017

  • Initial version of the widget

Roadmap

In the next iteration we are extending the 1x1 tile with more information like an indication if the last code coverage went up or down compared to the previous code coverage and how much it went up or down.

Feedback

Having idea's or seeing bugs? let us know! info@nxtstudio.nl

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft