Code coverage solution tool

An important part of what makes code high quality code is that it fulfills a desired outcome and is testable. Unit testing verifies if code meets that intended outcome and proves that it is testable. SonarQube acts as a central hub, collecting code test coverage and presenting it as clear pass/fail metrics in a quality gate that prevents substandard code from reaching production.

Ship code with confidence

secure

Improve code quality

Improve code maintainability image

Improve code maintainability

pdf

Import code test coverage reports

Code coverage support for languages

  • Language Icon
  • python logo
  • java script logo
  • type script logo
  • Language Icon
  • c plus logo
  • c logo
  • php logo
  • Language Icon
  • Language Icon
  • kotlin logo
  • terraform logo
  • cloud formation logo
  • kubernetes logo
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • Language Icon
  • jcl logo
  • Language Icon
  • Language Icon
  • HTML 5
  • Language Icon
  • Language Icon
  • PL/I
  • PL/SQL
  • Language Icon
  • T-SQL
  • Language Icon
CODE COVERAGE TOOL

Code test coverage solution benefits

warning

Reduce risks and issues

settings

Clear metrics

arrows pointing up on a diagonal

Actionable insights

devops

Continuous improvement

developer

Improve developer productivity

cloud

Workflow integration

Integrated code coverage in your CI/CD pipeline

SonarQube succeeds at supporting code coverage within your DevOps, CI/CD, and IDE workflows. It integrates with popular build systems to automatically ingest coverage reports during pipeline runs. Developers get immediate feedback in pull requests and the IDE, enabling faster fixes and more targeted tests.

DevOps

SonarQube Cloud, IDE, and Server in your devops workflow

Release secure, reliable and maintainable software

SonarQube Server: self-managed solution

SELF-MANAGED

Calculate and store code test coverage metrics (line, condition, new code) based on data generated by external, third-party tools both on-premise or in the cloud. Receive detailed reports that visualize test coverage percentages and identify areas with low test coverage. Use quality profiles to define minimum code test coverage thresholds.

SonarQube Cloud: SaaS solution

SaaS

Calculate and store code test coverage metrics (line, condition, new code) based on data generated by external, third-party tools hosted in the cloud. Receive detailed reports that visualize test coverage percentages and identify areas with low test coverage. Use quality profiles to define minimum code test coverage thresholds.

Dario Flores image

"Sonar helps our development team confidently make both AI-assisted and human-developed code fit for production by reviewing and establishing rules of good programming practices"

Dario FloresTechnical Quality Specialist

Build trust into every line of code

Rating image

4.6 / 5

Frequently asked questions

What is code test coverage in the context of SonarQube?

How do I set up SonarQube to measure code test coverage in my project?

What benefits does SonarQube’s code test coverage provide over other tools?

Can SonarQube analyze code test coverage for multiple programming languages?

How does SonarQube Cloud differ from the Community Build in terms of code test coverage?

How does SonarQube for IDE help maintain code quality and test coverage?

What is a quality gate in SonarQube and how does it relate to code test coverage?

How does SonarQube help organizations improve new code quality through code test coverage?

What kinds of SonarQube integrations are available for code test coverage?

How does SonarQube’s reporting and visualization drive quality code improvements across teams?