Coverage.py warning: No data was collected Coverage.py warning: No data was collected django django

Coverage.py warning: No data was collected


The coverage docs say the following:

“No data was collected (no-data-collected)”

Coverage.py ran your program, but didn’t measure any lines as executed. This could be because you asked to measure only modules that never ran, or for other reasons.

That means that your config needs some tweaking. In my case I forgot to glob the directory I specified in my .coveragerc:

[run]include = my_app/*

Have a look at the command you're running the tests with and your config files. There may be some directives working against each other.