2009-07-21 00:54:08 +08:00
|
|
|
|
2010-01-13 23:00:33 +08:00
|
|
|
report test coverage using the 'figleaf' package.
|
|
|
|
=================================================
|
2009-07-21 00:54:08 +08:00
|
|
|
|
|
|
|
|
2010-01-13 23:00:33 +08:00
|
|
|
.. contents::
|
|
|
|
:local:
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2010-09-14 23:35:01 +08:00
|
|
|
Install
|
|
|
|
---------------
|
|
|
|
|
|
|
|
To install the plugin issue::
|
|
|
|
|
|
|
|
easy_install pytest-figleaf # or
|
|
|
|
pip install pytest-figleaf
|
|
|
|
|
|
|
|
and if you are using pip you can also uninstall::
|
|
|
|
|
|
|
|
pip uninstall pytest-figleaf
|
|
|
|
|
|
|
|
|
2010-01-13 23:00:33 +08:00
|
|
|
Usage
|
|
|
|
---------------
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2010-09-14 23:35:01 +08:00
|
|
|
After installation you can simply type::
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest --figleaf [...]
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2010-01-13 23:00:33 +08:00
|
|
|
to enable figleaf coverage in your test run. A default ".figleaf" data file
|
2010-09-14 23:35:01 +08:00
|
|
|
and "html" directory will be created. You can use command line options
|
|
|
|
to control where data and html files are created.
|
2010-01-13 23:00:33 +08:00
|
|
|
|
|
|
|
command line options
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
|
|
``--figleaf``
|
|
|
|
trace python coverage with figleaf and write HTML for files below the current working dir
|
|
|
|
``--fig-data=dir``
|
|
|
|
set tracing file, default: ".figleaf".
|
|
|
|
``--fig-html=dir``
|
|
|
|
set html reporting dir, default "html".
|
|
|
|
|
|
|
|
.. include:: links.txt
|