Average Ratings 0 Ratings
Average Ratings 0 Ratings
Description
Coverage.py serves as a powerful utility for assessing the code coverage of Python applications. It tracks the execution of your program, recording which segments of the code have been activated, and subsequently reviews the source to pinpoint areas that could have been executed yet remained inactive. This measurement of coverage is primarily utilized to evaluate the efficacy of testing efforts. It provides insights into which portions of your code are being tested and which are left untested. To collect data, you can use the command `coverage run` to execute your test suite. Regardless of how you typically run your tests, you can incorporate coverage by executing your test runner with the coverage tool. If the command for your test runner begins with "python," simply substitute the initial "python" with "coverage run." To restrict coverage evaluation to only the code within the current directory and to identify files that have not been executed at all, include the source parameter in your coverage command. By default, Coverage.py measures line coverage, but it is also capable of assessing branch coverage. Additionally, it provides information on which specific tests executed particular lines of code, enhancing your understanding of test effectiveness. This comprehensive approach to coverage analysis can significantly improve the quality and reliability of your codebase.
Description
This plugin generates detailed coverage reports that offer more functionality compared to merely using coverage run. It includes support for subprocess execution, allowing you to fork or run tasks in a subprocess while still obtaining coverage seamlessly. Additionally, it integrates with xdist, enabling the use of all pytest-xdist features without sacrificing coverage reporting. The plugin maintains consistent behavior with pytest, ensuring that all functionalities provided by the coverage package are accessible either via pytest-cov's command line options or through coverage's configuration file. In rare cases, a stray .pth file might remain in the site packages after execution. To guarantee that each test run starts with clean data, the data file is cleared at the start of testing. If you wish to merge coverage results from multiple test runs, you can utilize the --cov-append option to add this data to that of previous runs. Furthermore, the data file is retained at the conclusion of testing, allowing users to leverage standard coverage tools for further analysis of the results. This additional functionality enhances the overall user experience by providing better management of coverage data throughout the testing process.
API Access
Has API
API Access
Has API
Integrations
Codecov
HTML
Python
XML
pytest
C
Coverage.py
Django
JSON
Mako
Integrations
Codecov
HTML
Python
XML
pytest
C
Coverage.py
Django
JSON
Mako
Pricing Details
Free
Free Trial
Free Version
Pricing Details
Free
Free Trial
Free Version
Deployment
Web-Based
On-Premises
iPhone App
iPad App
Android App
Windows
Mac
Linux
Chromebook
Deployment
Web-Based
On-Premises
iPhone App
iPad App
Android App
Windows
Mac
Linux
Chromebook
Customer Support
Business Hours
Live Rep (24/7)
Online Support
Customer Support
Business Hours
Live Rep (24/7)
Online Support
Types of Training
Training Docs
Webinars
Live Training (Online)
In Person
Types of Training
Training Docs
Webinars
Live Training (Online)
In Person
Vendor Details
Company Name
Coverage.py
Country
United States
Website
coverage.readthedocs.io/en/7.0.0/
Vendor Details
Company Name
Python
Country
United States
Website
pypi.org/project/pytest-cov/