Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add link to ONAP Sonar

These 2 practices are grouped in one page as ONAP uses Sonar which addresses both practices.

Code Coverage

Provide a measure to understand which part (%) of the code has been tested

A way to detect:

  • dead code
  • code that is not so often used but still critical (upgrade)

For ONAP, Sonar is available at sonar.onap.org

Tip
titleTips

The higher the better (but still this is not an absolute guarantee)

  • Coverage for incubation 4030-50 %
  • Coverage for mature 50-70 %
  • Coverage for core 70-80 %

Depending on the project state:

  • Static Code Analysis for incubation: Recommended
  • Static Code Analysis for mature: Recommended

Static Code Analysis for core: Mandatory for each major release. Because the tool generates significant false-positive and thus required a significant effort, the practice not must be conducted in the latest release build