blob: 854ccee9fbc1f0b9c116a292f4920a269a571ebe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
def html_it():
"""Run coverage and make an HTML report for main."""
import coverage
cov = coverage.coverage()
cov.start()
import main
cov.stop()
cov.html_report(directory="../html_omit_3", omit_prefixes=["m1", "m2"])
runfunc(html_it, rundir="src")
# HTML files will change often. Check that the sizes are reasonable,
# and check that certain key strings are in the output.
compare("gold_omit_3", "html_omit_3", size_within=10, file_pattern="*.html")
clean("html_omit_3")
|