qa:testcoverage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qa:testcoverage [2008/04/30 19:53] – Create page of instructions on how to get coverage figs zoe | qa:testcoverage [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 23: | Line 23: | ||
* genhtml dom.info -o dom_coverage. This will make a directory called dom_coverage with html coverage files in it. | * genhtml dom.info -o dom_coverage. This will make a directory called dom_coverage with html coverage files in it. | ||
* View the coverage files :-) | * View the coverage files :-) | ||
+ | |||
+ | ==== How would I look at the coverage of a subset of the tests? ==== | ||
+ | For example - suppose I wanted to take all the tests which are there because of bug reports and just look at what the base test cases cover. | ||
+ | * cd / | ||
+ | * '' | ||
+ | * make clean; make | ||
+ | * cd / | ||
+ | * run lcov and genhtml as above | ||
+ | |||
+ | Just for interest, the code coverage of the dom extension without the bug tests is 2101 of 4708 lines (44.6%). | ||
+ | |||
+ | Don't forget to copy the bug tests back afterwards: | ||
+ | * '' | ||
+ | * NB: no space between the two slashes after .bak | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
qa/testcoverage.1209585206.txt.gz · Last modified: 2017/09/22 13:28 (external edit)