plugin for the metrics package (extracts % coverage for python files and missing)
Project description
installation
to install:
$ pip install metrics.pytest-cov
to uninstall:
$ pip uninstall metrics.pytest-cov
for details please see the documentation of metrics.
metrics.pytest-cov
The metrics.pytest-cov package is a plugin for the metrics package.
Basically what this plugin does is it extract the data you get from running “$ coverage report -m” on the command line.
We assume that you run your pytest tests (incl. pytest-cov) before your run metrics. In case your test execution fails you should fix your code and rerun the tests prior to running metrics with this plugin.
The metrics.pytest-cov plugin picks up the .coverage file from your successful test run. If you must know, we could run the tests but decided not to.
Please note that in case a .coverage file from a testrun is not available we silently do nothing.
Acknowledgements
Carsten for a recipe on how to load the .coverage file programmatically https://stackoverflow.com/questions/35224643/how-do-i-access-coverage-py-results-programmatically
License
Copyright (c) 2018 Mark Fink and others. metrics is released under the MIT License (see MIT_LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file metrics.pytest-cov-0.0.4.tar.gz
.
File metadata
- Download URL: metrics.pytest-cov-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe1cadfd685f8f2dc78b051ea186da7242380019709a5bb159c737b8479b5fa |
|
MD5 | eb0fc7c22f9ef36a12cd86c23f86a963 |
|
BLAKE2b-256 | 6372f0cbf0c51cff050dc00c967608f0c5cfddf67150a11c0c326e9fec1bbc8e |