Top "Coverage.py" questions

coverage.

Using omit flag in Python coverage.py API

I'm using the python coverage.py to create a very basic test suite with coverage. Currently everything works great. However, …

python regex code-coverage coverage.py
WARNING: Failed to generate report: No data to report error in python using pytest module

Sample.py code: def sum(num1, num2): return num1 + num2 def sum_only_positive(num1, num2): if num1 > 0 and …

python pytest coverage.py pytest-cov
Making py.test, coverage and tox work together: __init__.py in tests folder?

I'm having a weird problem with tox, py.test, coverage and pytest-cov: when py.test with the --cov option is …

python code-coverage pytest coverage.py tox
How to run coverage.py on a directory?

I have a directory tests that includes a lot of different tests named test_*. I tried to run coverage run …

python coverage.py
Coverage.py Python Module - Import Errors when Running Script

I'm having trouble getting the "coverage" module for Python working correctly. I have no permissions to modify or add to …

python code-coverage coverage.py
Python unit test coverage for multiple modules

I searched for a long time and surprisingly found no satisfactory answer. I have multiple modules/files in my Python …

python unit-testing code-coverage python-unittest coverage.py
How to exclude a file from coverage.py?

I use nosetest's coverage.py plugin. Is it somehow possible to exclude entire files or folders from the coverage report? …

python unit-testing code-coverage nose coverage.py
Python nosetests with coverage no longer shows missing lines

I've been using the following command to run tests and evaluate code coverage for a Python project for over a …

python nose coverage.py