Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Test Verdict
Test Verdict

Test Verdict

Steve Swinsburg

| (0) | Free
Universal test & code coverage PR decorator and merge gate for JaCoCo, Cobertura, LCOV, Istanbul/Jest, Go, and OpenCover.
Get it free

Test Verdict for Azure Pipelines

Universal test & code coverage PR decorator and merge gate for every major coverage report format.

Features

  • Format-agnostic auto-detection: Parses and merges LCOV, Cobertura XML, JaCoCo XML, Istanbul/Jest JSON, Go coverprofile, and OpenCover XML reports in a single pass.
  • Overall and PR diff coverage: Gates both total repository coverage and changed lines in the pull request.
  • Sticky PR comment threads: Creates or updates a single PR comment thread per reportId, setting thread status to active on failure and closed once passing.
  • Build Summary tab: Uploads the full file-by-file breakdown directly to the Azure Pipelines Build Summary.
  • Monorepo coverage groups: Configure per-service suites and independent thresholds in .test-verdict.yml.

Quickstart

Java / Kotlin (JaCoCo)

steps:
  - checkout: self
    fetchDepth: 0

  - script: ./gradlew test jacocoTestReport
    displayName: Run tests with coverage

  - task: TestVerdict@0
    inputs:
      files: '**/build/reports/jacoco/test/jacocoTestReport.xml'
      minLine: '80'
      minDiffLine: '90'

(For Maven builds, point files at **/target/site/jacoco/jacoco.xml.)

.NET (Cobertura)

steps:
  - checkout: self
    fetchDepth: 0

  - script: dotnet test --collect:"XPlat Code Coverage" --results-directory TestResults
    displayName: Run tests with coverage

  - task: TestVerdict@0
    inputs:
      files: TestResults/**/coverage.cobertura.xml
      minLine: '80'
      minDiffLine: '90'

Node.js / TypeScript (LCOV)

steps:
  - checkout: self
    fetchDepth: 0

  - script: npm ci && npm test -- --coverage
    displayName: Run tests with coverage

  - task: TestVerdict@0
    inputs:
      files: coverage/lcov.info
      minLine: '80'
      minDiffLine: '90'

Documentation & More Examples

  • Full task reference, outputs, Build Service permissions, and Branch Policy setup: AZURE_PIPELINES.md
  • Full multi-language recipes (Java, .NET, Python, Go, Node.js, OpenCover, monorepos, multi-suite, and outputs): Azure Pipelines Recipes
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft