diff options
Diffstat (limited to 'test/farm/html/run_a_xml_1.py')
| -rw-r--r-- | test/farm/html/run_a_xml_1.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/farm/html/run_a_xml_1.py b/test/farm/html/run_a_xml_1.py new file mode 100644 index 0000000..7f4805e --- /dev/null +++ b/test/farm/html/run_a_xml_1.py @@ -0,0 +1,20 @@ +def html_it(): + """Run coverage and make an XML report for a.""" + import coverage + cov = coverage.coverage() + cov.start() + import a + cov.stop() + cov.xml_report(a, outfile="../xml_1/coverage.xml") + +import os +if not os.path.exists("xml_1"): + os.makedirs("xml_1") + +runfunc(html_it, rundir="src") + +compare("gold_x_xml", "xml_1", scrubs=[ + (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), + (r' version="[-.\w]+"', ' version="VERSION"'), + ]) +clean("xml_1") |
