diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-26 08:58:10 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-26 08:58:10 -0400 |
| commit | c07631870b89307320b5ddbaed49566d0d927e99 (patch) | |
| tree | 7da13d64841acda9f328f4b7f555f0436b79f1cb /doc/index.rst | |
| parent | 98473577d7127d2ebb8f71c1a6016ca71b0fad2e (diff) | |
| download | python-coveragepy-git-c07631870b89307320b5ddbaed49566d0d927e99.tar.gz | |
Finally looks like I'll be able to write .px files directly.
Diffstat (limited to 'doc/index.rst')
| -rw-r--r-- | doc/index.rst | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/doc/index.rst b/doc/index.rst index 3d68da50..d28e7a79 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -31,15 +31,14 @@ Quick Start Getting started with coverage.py is easy:
-#. Install coverage.py from the `coverage page on the cheeseshop <http://pypi.python.org/pypi/coverage>`_.
+#. Install coverage.py from the
+ `coverage page on the cheeseshop <http://pypi.python.org/pypi/coverage>`_.
#. Run coverage.py to execute your program and gather data::
$ coverage -e -x my_program.py arg1 arg2
blah blah ..your program's output.. blah blah
- "-e -x" means erase coverage data from previous runs and execute a program.
-
#. Run coverage.py to report on the results::
$ coverage -r -m
@@ -50,14 +49,21 @@ Getting started with coverage.py is easy: -------------------------------------------------------
TOTAL 76 66 87%
- "-r -m" means show a summary report and include the missing line numbers.
-
#. For a nicer presentation, run coverage.py to get annotated HTML listings
detailing missed lines::
- coverage -b -d htmlcov
+ $ coverage -b -i -d htmlcov
+
+ Then visit htmlcov/index.html in your browser, to see a
+ `report like this <sample_html/index.html>`_.
+
+Getting Help
+~~~~~~~~~~~~
+
+This is a third-level section, with some XML::
- Then visit htmlcov/index.html in your browser.
+ <tag attr='value'>1 < 2 & 2 > 1</tag>
+ Whoa!
Using coverage.py
|
