# HG changeset patch # User Siddharth Agarwal # Date 1496895426 25200 # 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 -r 232875623c27 -r 74680ed89a29 tests/run-tests.py --- a/tests/run-tests.py Wed Jun 07 20:46:43 2017 -0700 +++ b/tests/run-tests.py Wed Jun 07 21:17:06 2017 -0700 @@ -2754,10 +2754,10 @@ 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)