LogoLogo
CtrlK
  • Home
  • SonarQube Cloud
  • SonarQube Server
  • SonarQube Community Build
  • Homepage
  • AI capabilities
    • Overview
    • AI Code Assurance
    • Autodetect AI code
    • AI CodeFix
  • Advanced Security
    • Introduction
    • Analyzing projects for dependencies (SCA)
    • Viewing dependencies
    • Reviewing and fixing dependency risks
    • Managing license profiles and policies
    • Troubleshooting the dependency analysis
    • Best practices for managing dependency risks
  • Discovering SonarQube Cloud
    • Developing with Sonar
    • What SonarQube Cloud can do
    • Integration with DevOps platforms
  • Getting started with SonarQube Cloud
    • Signing up and onboarding
    • Analyzing GitHub projects
    • Analyzing Bitbucket Cloud projects
    • Analyzing GitLab projects
    • Analyzing Azure DevOps projects
    • Viewing your first analysis' results
    • Retrieving your organizations
  • Getting started with Enterprise
    • Introduction
    • Setting up your enterprise
    • Setting up SSO
    • Onboarding a new organization
    • Administering portfolios
    • Viewing the enterprise reports
      • Introduction
      • Viewing project security reports
      • Viewing project regulatory reports
      • Viewing project PDF reports
      • Viewing portfolios
      • Viewing portfolio security reports
      • Viewing portfolio PDF reports
    • Viewing usage information
  • Improving your code
    • Overview
    • SonarQube for IDE
    • Pull request analysis
    • Quality gates
    • Main branch analysis
  • Enriching your analysis
    • Overview
    • Test coverage
      • Overview
      • C / C++ / Objective-C test coverage
      • Dart test coverage
      • Go test coverage
      • Java test coverage
      • JavaScript / TypeScript test coverage
      • .NET test coverage
      • PHP test coverage
      • Python test coverage
      • Test execution parameters
      • Generic test data
      • Test coverage parameters
    • External analyzer reports
    • Generic issue data
    • SARIF reports
    • Branch analysis
    • Branch analysis setup
  • Setting your quality standards
    • Overview
    • Quality standards and new code
    • Managing quality gates
      • Introduction
      • Understanding quality gates
      • Viewing a quality gate
      • Managing custom quality gates
      • Changing default quality gate
      • Associating a quality gate with projects
    • Managing quality profiles
      • Introduction
      • Understanding quality profiles
      • Viewing quality profiles
      • Creating a quality profile
      • Editing a quality profile
      • Associating with projects
      • Changing default quality profile
      • Maintaining quality profiles
      • Granting permissions to users
    • Standards for AI Code Assurance
      • Set your AI standards
      • Quality gates for AI code
      • Quality profiles for AI code
      • Monitor projects with AI code
  • Managing your account
    • Introduction
    • Signing in to SonarQube Cloud
    • Managing Personal Access Tokens
    • Subscribing to notifications
    • Customizing your UI
    • Deleting your account
    • Leaving an organization
  • Managing your project
    • Retrieving projects
    • Managing code issues
      • Introduction
      • Issue management solution
      • Retrieving issues
      • Reviewing issues
      • Editing issues
      • Fixing issues
      • Issues reported in DevOps platform
    • Managing your project as a developer
    • Setting up project analysis
      • Introduction
      • Analysis scope
        • Introduction
        • Setting initial scope
        • Excluding based on path-matching patterns
        • Excluding based on file extension
        • Excluding from coverage or duplication
        • Advanced exclusions
        • Other analysis scope adjustments
        • Verifying analysis scope
      • Long-lived branch pattern
      • Quality gate
      • Quality profile
      • New code definition
    • Administering your project
      • Introduction
      • Creating and setting up your project
      • DevOps platform integration
        • Introduction
        • GitHub
        • Bitbucket Cloud
        • GitLab
        • Azure DevOps
      • Setting user permissions
      • Changing project binding
      • AI features
        • Overview
        • Set up AI Code Assurance
        • AI CodeFix
      • Customizing Information page
      • Jira Cloud integration
      • Advanced administration
        • Setting up run tasks in TFC
        • Integrating projects with Compass
        • Other advanced procedures
      • Deleting project
  • Managing portfolios
  • Administering SonarQube Cloud
    • Resources structure in SonarQube Cloud
      • Organization
      • Organization's projects
      • Enterprise
      • Binding with the DevOps platform
    • Organization setup overview
    • Managing your subscription
      • Introduction
      • Subscription plans
      • Billing model
      • Signing up for a plan
      • Changing your subscription plan
      • Updating billing or payment details
      • Viewing billing or usage information
      • Viewing taxes and invoices
    • Creating and editing your organization
      • Importing GitHub organization
      • Importing Bitbucket workspace
      • Importing GitLab group
      • Importing Azure DevOps organization
      • Creating organization manually
      • Changing organization binding
      • Binding an unbound organization
      • Changing organization settings
      • Deleting organization
      • Using multiple accounts
    • Performing global analysis setup
      • Introduction
      • Setting new code definition
      • Setting long-lived branch pattern
      • Adjusting analysis scope
        • Introduction
        • Excluding from coverage or duplication
        • Excluding files based on file paths
        • Using advanced exclusion features
      • Disabling automatic analysis
      • Managing quality standards
    • Adding organization members
    • Managing user groups
    • Managing organization permissions
    • Managing organization's projects
      • Using Projects Management page
      • Managing project permissions
        • Using permission templates
        • Restoring administrator access
      • Migrating projects
    • Managing the user accounts
      • Introduction
      • Basic concepts
        • User group concept
        • Associated SCM accounts
      • Authentication and provisioning
        • DevOps platform authentication
        • SSO authentication
        • GitHub member synchronization
        • Automatic group synchronization
      • Setting up Single Sign-On
        • Introduction
        • Step 1: Verify the user groups
        • Step 2: Configure SSO
          • Introduction
          • SAML SSO with Okta
          • SAML SSO with Entra ID
        • Step 3: Invite users to sign in
        • Step 4: Terminate SSO setup
        • Editing SSO configuration
        • Editing SSO configuration (old method)
          • Introduction
          • With Okta
          • With Microsoft Entra ID
        • Deleting SSO configuration
        • Troubleshooting SSO connection
      • Administering your users
    • Managing Scoped Organization Tokens
    • Managing your enterprise
      • Retrieving and viewing your enterprise
      • Creating your enterprise
      • Adding organizations to your enterprise
      • Managing the enterprise-related permissions
      • Managing the lines of code within your enterprise
      • Changing enterprise settings
      • Downgrading your enterprise
    • AI features
      • Overview
      • Autodetect AI code
      • Permissions for AI Autodetect
      • Enable AI CodeFix
    • Connecting to Slack
      • About SonarQube Cloud integration with Slack
      • Setting up the connection to Slack
    • Advanced administration
  • Design and Architecture
    • Overview
    • Cycle detection
    • Configuring the architecture analysis
  • Advanced setup
    • Overview
    • Automatic analysis
    • CI-based analysis
      • Overview of integrated CIs
      • Github Actions
      • Bitbucket Pipelines
      • Azure pipelines
        • Introduction
        • Azure Pipelines integration overview
        • Setting up project integration
        • Adding analysis to build pipeline
          • JS, TS, Go, Python, PHP, etc. project
          • C family project
          • .NET project
          • Gradle or Maven project
          • Monorepo projects
          • Using various features
        • Checking quality gate in release pipeline
        • List of SonarQube tasks
      • GitLab CI
      • Jenkins
        • Key features
        • Setting up Jenkins
        • Adding analysis to a Jenkins job
        • Setting up a pipeline pause
      • Amazon CodeCatalyst
      • CircleCI
      • Travis CI
      • Codemagic
      • Other CIs
      • SonarScanner CLI
      • Azure DevOps Extension
      • Jenkins Extension
      • SonarScanner for Maven
      • SonarScanner for Gradle
      • SonarScanner for .NET
        • Introduction
        • Installing the scanner
        • Using the scanner
        • Configuring the scanner
      • SonarScanner for NPM
        • Introduction
        • Installing the scanner
        • Using the scanner
        • Configuring the scanner
      • SonarScanner for Python
      • JFrog Evidence Collection
    • Scanner environment
      • General requirements
      • Checked-out code
    • Languages
      • Supported languages
      • ABAP
      • Ansible
      • Apex
      • Azure Resource Manager
      • C/C++/Objective C
        • C/C++/Objective-C analysis overview
        • Analysis modes
        • Prerequisites
        • Running the analysis
        • Customizing the analysis
        • Understanding the analysis
        • Related pages
      • CloudFormation
      • C#
      • COBOL
      • Docker
      • Dart
      • Flex
      • GitHub Actions
      • Go
      • HTML
      • Java
      • JavaScript/TypeScript/CSS
      • JCL
      • JSON
      • Kotlin
      • Kubernetes/Helm
      • PHP
      • PL/I
      • PL/SQL
      • Python
      • RPG
      • Ruby
      • Rust
      • Scala
      • Secrets
      • Swift
      • Terraform
      • T-SQL
      • VB.NET
      • VB6
      • XML
      • YAML
    • Analysis parameters
    • Monorepo support
    • Web API
    • Webhooks
    • Incremental analysis mechanisms
  • Digging deeper
    • Security hotspots
    • Security Reports
    • Activity and history
    • Filters and perspective
    • Understanding measures and metrics
    • Background tasks
    • Managing project history
    • Housekeeping
    • Rules
    • Software qualities
    • Security-related rules
    • Rules for AI CodeFix
    • Built-in rule tags
  • Appendices
    • Frequently asked questions
    • Troubleshooting
    • Keyboard shortcuts
    • Announcements
    • Security
    • SonarQube glossary
    • Defining matching patterns
    • Product release lifecycle
  • Deprecations and removals
On this page

Was this helpful?

  1. Enriching your analysis

Test coverage

These guides explain how to implement test coverage in SonarQube Cloud across a variety of covered languages.

OverviewC / C++ / Objective-C test coverageDart test coverageGo test coverageJava test coverageJavaScript / TypeScript test coverage.NET test coveragePHP test coveragePython test coverageTest execution parametersGeneric test dataTest coverage parameters
PreviousOverviewNextOverview

Last updated 1 month ago

Was this helpful?

Resources

  • Sonar
  • Sonar Rules Catalog
  • Sonar Community

© 2008-2024 SonarSource SA. All rights reserved.