blob: c49bdfbd1aa46e919f40d34af037caffe83e5ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
def html_it():
"""Run coverage and make an HTML report for tabbed."""
import coverage
cov = coverage.coverage()
cov.start()
import tabbed
cov.stop()
cov.html_report(tabbed, directory="../html")
runfunc(html_it, rundir="src")
# Editors like to change things, make sure our source file still has tabs.
contains("src/tabbed.py", "\tif x:\t\t\t\t\t\t# look nice")
contains("html/tabbed.html",
"<p class='stm run hide'> if x: # look nice</p>")
doesnt_contain("html/tabbed.html", "\t")
clean("html")
|