Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 664 Bytes

codecoverage.md

File metadata and controls

19 lines (12 loc) · 664 Bytes

How to check code coverage results in spacewalk-testsuite

Get the log
CONTROL="your control-node"
scp -r root@$CONTROL:/root/spacewalk-testsuite-base/coverage .
firefox coverage/input.html
Analyze:

IMPORTANT: if you have a lot of failures, the coverage will decrease because the steps were not executed. Ideally, you need to have the testsuite results green to evaluate correctly the code coverage and find dead code.

Code coverage result.html is a great tool, but needs a human interpretation of the results.

Always submit a PR for eliminating dead code or a better fix that you had inspired by code coverage.