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)
Tips
The higher the better (but still this is not an absolute guarantee)
- Coverage for incubation 40-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