Code Coverage Tool Reference Manual

Usage Scenario
HP Code Coverage Tool Reference Manual for HP Integrity NonStop NS-Series Servers542684-004
8-5
Measure Code Coverage
Measure Code Coverage
1. This display shows the directory containing the input files for codecov.
2. This command runs the codecov tool, specifying the host address and login
information required to retrieve the elfdump source files from the Guardian file
system. The prompt for a password would occur in practice but is omitted from this
example. The -counts option causes execution counts to appear in the code
coverage report.
3. This display shows the input directory, which now includes the code coverage
report, in the file CODE_COVERAGE.HTML and the folder named CodeCoverage.
Evaluate the Code Coverage Report
1. This screen is a summary of code coverage for the two test runs:
$ ls
pgopti.dpi pgopti.spi zzpfo9uj zzpfu7
codecov -counts -host 16.107.174.143 -login super.super
$ ls
CODE_COVERAGE.HTML CodeCoverage pgopti.dpi pgopti.spi
zzpfo9uj zzpfu7