[Python-checkins] devguide: Fix the coverage.py statement for generating HTML reports.
brett.cannon
python-checkins at python.org
Tue Feb 1 22:21:24 CET 2011
brett.cannon pushed b0bba5777e1e to devguide:
http://hg.python.org/devguide/rev/b0bba5777e1e
changeset: 225:b0bba5777e1e
tag: tip
user: Brett Cannon <brett at python.org>
date: Mon Jan 31 21:08:53 2011 -0800
summary:
Fix the coverage.py statement for generating HTML reports.
files:
coverage.rst
diff --git a/coverage.rst b/coverage.rst
--- a/coverage.rst
+++ b/coverage.rst
@@ -120,12 +120,13 @@
But one of the strengths of coverage.py is its HTML-based reports which lets
you visually see what lines of code were not tested::
- ./python -m coverage -d coverage_html html -i --omit="*/test/*,*/tests/*"
+ ./python -m coverage html -i --omit="*/test/*,*/tests/*"
-This will generate an HTML report which ignores any errors that may arise and
-ignores test modules. You can then open the ``coverage_html/index.html`` file
+This will generate an HTML report in a directory named ``htmlcov`` which
+ignores any errors that may arise and
+ignores test modules. You can then open the ``htmlcov/index.html`` file
in a web browser to view the coverage results along with pages that visibly
-show what lines of code were not executed.
+show what lines of code were or were not executed.
.. _branch_coverage:
--
Repository URL: http://hg.python.org/devguide
More information about the Python-checkins
mailing list