SonarQube Test coverage

SonarQube- Enterprise version 10.3
I wanted to find out if Sonarqube can be configured in terms of Test Coverage in a finer grain. The configurations that i’m looking for:

  • Configure Thresholds at the level of Line and Conditions (branches) for a Java package (directory)
    • This means that we can have an overall threshold for the project but have a refined (overriden) threshold value for specific packages, for example to make sure that packages (directories) that contain business logic have a 100% coverage, while other packages like DTO packages can still be 80%.
  • Configure Thresholds at the level of Line and Conditions (branches) for a project
  • Configure Thresholds at the level of Line and Conditions (branches) for a portfolio
    Please let me know if this is something that can be configured in SonarQube.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

10.3 → 2025.1

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, the refined thresholds you seek are not available.

 
HTH,
Ann