# HG changeset patch # User Siddharth Agarwal # Date 2017-06-08 04:17:06 # Node ID 74680ed89a2929b3b92f7a41e0d36fe58e3dd8c6 # Parent 232875623c27996e1057d7b897658c6b4f23ef15 run-tests: output coverage to output dir There do not appear to be any tests for this, and I've never used either of these options before, but this works. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2754,10 +2754,10 @@ class TestRunner(object): cov.report(ignore_errors=True, omit=omit) if self.options.htmlcov: - htmldir = os.path.join(self._testdir, 'htmlcov') + htmldir = os.path.join(self._outputdir, 'htmlcov') cov.html_report(directory=htmldir, omit=omit) if self.options.annotate: - adir = os.path.join(self._testdir, 'annotated') + adir = os.path.join(self._outputdir, 'annotated') if not os.path.isdir(adir): os.mkdir(adir) cov.annotate(directory=adir, omit=omit)