Is our code coverage going up or down? Put the answer on the team dashboard: the latest coverage of a pipeline, how it changed since the previous run, and its trend.
The Code Coverage Widgets extension (13,000+ installs) is unpublished, so new organizations cannot install it, and Azure DevOps has no code coverage widget of its own.
What it shows
- The latest coverage of the pipeline you pick, with one decimal: line coverage, and branch coverage next to it when your coverage tool reports branches.
- The change since the previous run, in points, with how many lines were covered and added.
- A trend of the last 5 to 30 runs that published coverage, with your target drawn as a dashed line.
- Colors by your target. Green at or above the target (80% by default), amber down to a minimum (60%), red below. Every color comes with words, so it reads without color too. Prefer a plain look? Switch colors off.
- Links to the run and to its Code Coverage tab, where the full report is.
The bigger sizes list every metric your coverage tool reports (for JaCoCo: lines, branches, instructions, methods, classes and complexity) with their change, and, for Visual Studio coverage of several build configurations, the coverage of each.
Works with
- Publish Code Coverage Results v2, from any format it takes (Cobertura, JaCoCo, .coverage and more). It reports lines.
- Publish Code Coverage Results v1 with Cobertura (lines and branches) or JaCoCo (every JaCoCo counter).
- Visual Studio Test and .NET tasks with code coverage turned on (.coverage files), per build configuration.
The widget reads the coverage summary Azure DevOps keeps for each run. If no recent run has one, it also tries the older per-module coverage data.
Settings
- Pipeline: search by name or folder.
- Runs: on the pipeline's default branch (default), on one branch you name (with suggestions from recent runs), or on every branch. Failed runs are left out unless you include them, because tests that stopped early make coverage drop. Canceled runs are always left out.
- Metric: lines (default; blocks when your tool reports no lines), branches, blocks, instructions, statements, methods or classes. If the pipeline does not report the metric you chose, the widget says so and shows lines.
- Target and minimum for the colors, and how many runs the trend shows.
Sizes
1x1 for the number with its change and a small trend, 2x1 (the default) with a wider trend and links, 2x2 and 3x2 with every metric.
When there is nothing to show
The widget says why instead of showing an empty box: no completed runs on that branch yet, only failed or canceled runs, no coverage in the recent runs (with what to add to the pipeline, or Azure DevOps' own reason when it has one), the newest run's coverage still being processed, a deleted pipeline, or missing permissions.
Private by design
The widget reads with your own permissions, in your browser. It sends nothing to IK Lab or anyone else: no backend, no analytics. It asks for two read-only scopes:
vso.build to list the pipelines and read their runs.
vso.test to read the code coverage summaries, which Azure DevOps keeps with the test results.
Requirements
Azure DevOps Services, or Azure DevOps Server 2020 and later. Viewers need permission to view the pipeline's builds and to view test runs. A pipeline needs to publish code coverage, for example with the Publish Code Coverage Results task.
Free Azure DevOps extensions from the same team. Like this one, each runs in your browser and sends nothing to IK Lab or anyone else.
Code and pipelines
- Pipeline Health: many pipelines at once on a page or a dashboard, failing first.
- Contributions Graph: a year calendar of commits, pull requests and work items per person.
Testing
Dashboards
Boards and planning
- Roadmap: epics and features across sprints, placed by where their stories are planned.
- Roll-up Board: features or epics in columns by state, with the progress of their stories.
- Sprint Goals: each team's sprint goal on the sprint page and on a dashboard.
- Decompose: break a work item into children by typing an outline.
- Board Settings Copier: copy a team's board columns, swimlanes, card fields and styles to other teams.
Work items
- Checklist: a checklist on every work item, with Definition of Done templates.
- Tags Manager: rename, merge and delete work item tags across the project.
- Print Work Items and Cards: print work items in full or as cards for a physical board, or save them as PDF.
- Color Picklist: a picklist field such as Risk or Priority as colored options on the work item form.
Also from IK Lab
- Borsch: test cases, bug reports and story rewrites drafted with AI from a work item. Unlike the free tools above, it sends the work item's text to IK Lab's service to draft them.
Every IK Lab tool on one page: iklab.dev/tools.
| |