[pypy-commit] pypy default: add using coverage reports to the coding guide

RonnyPfannschmidt noreply at buildbot.pypy.org
Fri Jul 22 00:47:55 CEST 2011

Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Changeset: r45850:38aa87797a59
Date: 2011-07-22 00:45 +0200

Log:	add using coverage reports to the coding guide

diff --git a/pypy/doc/coding-guide.rst b/pypy/doc/coding-guide.rst
--- a/pypy/doc/coding-guide.rst
+++ b/pypy/doc/coding-guide.rst
@@ -929,6 +929,19 @@
 located in the ``py/bin/`` directory.  For switches to
 modify test execution pass the ``-h`` option.
+Coverage reports
+In order to get coverage reports the `pytest-cov`_ plugin is included.
+it adds some extra requirements ( coverage_ and `cov-core`_ )
+and can once they are installed coverage testing can be invoked via::
+  python test_all.py --cov file_or_direcory_to_cover file_or_directory
+.. _`pytest-cov`: http://pypi.python.org/pypi/pytest-cov
+.. _`coverage`: http://pypi.python.org/pypi/coverage
+.. _`cov-core`: http://pypi.python.org/pypi/cov-core
 Test conventions

More information about the pypy-commit mailing list