A coverage plugin for Ward testing framework
Project description
Ward Coverage
Disclaimer: Albeit useful already, this is a work-in-progress and should be seen as such.
A coverage plugin for Python's Ward testing framework
Installation
Build the plugin:
poetry build
and install using
pip install dist/ward_coverage-0.1.1-py3-none-any.whl
Configuration
To include coverage in your test run, add the following to your pyproject.toml
:
[tool.ward]
hook_module = ["ward_coverage"]
There are several options to configure the plugin which can be included under section [tool.ward.plugins.coverage]
, namely:
- All the constructor parameters of
Coverage
class as described here: https://coverage.readthedocs.io/en/6.4/api_coverage.html#coverage.Coverage report_type
, defaulting to["term"]
, which is a list of report types to generate. Possible values are one or more of 'lcov', 'html', 'xml', 'json', 'term'
Contributors, issues and feature requests are welcome.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ward_coverage-0.1.4.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for ward_coverage-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eeacaa6d93800ef13a69a99fd79477a118e5dc8b3b8939557893ddb3dfd98c4 |
|
MD5 | d1f665d864551e25cc66cd2c0d5db2f0 |
|
BLAKE2b-256 | 90a7310a679aca9443461225fa4ac0fc49b6dc54c7025772ad63fd3121e1391a |