8

I am having problem on testing my django application. It passes all the tests but coverage.py doesn't give any report about the coverage. Any luck on this? Thanks

4

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.