Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update code coverage for incubation to 30-50% range

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)
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