Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{iframe:src=http://update.sonarsource.org/plugins/totalquality.html|width=700|height=250|frameborder=0} Your browser does not support iframes. {iframe}
Wiki Markup
Warning
titleDeprecated

This plugin is deprecated since SonarQube 3.7. Please move to the concept of Technical Debt introduced in SonarQube 4.0.

Description / Features

Total Quality plugin combines four domains domain measures (architecture, design, code, and tests) in order to calculate a global and unified project quality health. Plugin provides metrics at project level only.

...

TQ = 0.25*ARCH + 0.25*DES + 0.25*CODE + 0.25*TS

or 

TQ = 0.25*ARCH + 0.25*DES + 0.25*CODE + 0.25*OVERALL_TS (if computing Quality with IT Tests is enabled)

where:

Architecture (ARCH)

...

acel is an accelerator factor whose value can be configured in the Sonar SonarQube settings page.
The default threshold for each metric can be also configured (for instance, 50 is the default response_for_class threshold).

...

SUC = Unit Tests success density

Configuration

...

Overall Test (OVERALL_TS)

Testing quality is based on coverage metric family (coverage, and test success).

Test = 0.60*TS + 0.40*IT_COV

TS = Test Quality of Unit Tests

IT_COV = Integration Tests coverage

Include Page
Include - Plugin Installation
Include - Plugin Installation

Usage

Add the "Total Quality" widget to your dashboard.

Run an analysis on the project to compute the Total Quality metrics.

Each threshold and every formula may be configured at either the property or global level.

To remove a metric just assign it a zero weight in the formula, like so,

"ARCH=0.25 DESIGN=0.25 CODE=0.50 TESTS=0.00"

Known limitations and TODO

...

Info
To enable the computation of IT Tests in the Test Quality metric you need to enable it by setting sonar.tq.it_tests.enabled property to "true" at the global or project level.

TODO

Usage & Installation

1. Copy the jar into /extensions/plugins/ directory
2. Restart Sonar Web server
3. Launch a new quality analysis and the metrics will be fed

Changelog

Change Log

JIRA Issues
anonymoustrue
titleRelease 1.1
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17623&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.0.2
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16926&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.0.1
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16542&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

...