Skip to main content

Ward Coverage

CI/CD MyPy Lint Security Rating PyPI - Downloads

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

Example image

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:

  • 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'
  • threshold for minimum coverage, affecting the color the result panel has for some sort of visual cue
  • All of the options described here. Please note that everything here under [run] section goes to [tool.ward.plugins.coverage] and other sections need their separate block (e.g [tool.ward.plugins.coverage.report]) or dictionary entry within the [tool.ward.plugins.coverage] section in toml.

Example configuration

[tool.ward.plugins.coverage]
omit = ["*test*", "example.py", "**/__init__.py"]
report_type = ["term", "xml"]
source = ["."]
branch = true
relative_files = true
report = {skip_empty = true}

Contributors, issues and feature requests are welcome.

Metadata

Release files for ward-coverage 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ward-coverage 0.3.1
File Size Uploaded Provenance Actions
ward_coverage-0.3.1.tar.gz 5.3 kB Without provenance Details for ward_coverage-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ward-coverage 0.3.1
File Interpreter ABI Platform Actions
ward_coverage-0.3.1-py3-none-any.whl Python 3 none any Details for ward_coverage-0.3.1-py3-none-any.whl

Total release size: 10.8 kB

Release files / ward_coverage-0.3.1.tar.gz

Download URL ward_coverage-0.3.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89676ca687eba25d9ece2adcd0eefe18045e1567a9886a9796bf088a01f5cc4d
BLAKE2b-256 checksum
How to use checksums
b275cba3e93c0a1bd685f21d3e5acd005e2614da97327e608efb663b3736a75b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / ward_coverage-0.3.1-py3-none-any.whl

Download URL ward_coverage-0.3.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fa51610a8c44b1a40b767fc85a04ddf2beb1d7a725f34e1ebcdbac31a731e18
BLAKE2b-256 checksum
How to use checksums
8f89834e0b8d27e9db0f1e8302600f78b436ade05a0cc7be1b2a9576c552582b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for ward-coverage 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page