0

I'm using coverage.py to check the test/code coverage and it seems to consistently skip over any class methods. Is there a way to fix this?

4
  • 1
    Did you call coverage.start() before importing your modules? May have not started coverage early enough. Commented Apr 8, 2015 at 17:24
  • @DonkeyKong i'm not calling it myself, it's called by django-coverage so I have no idea where it takes place Commented Apr 8, 2015 at 19:33
  • 1
    You'll have to post some code, and an example of the coverage report demonstrating the problem. Class methods (or do you mean classmethods?) are supported just fine. Commented Apr 9, 2015 at 0:35
  • voting to close: I may have misread what's happening and my tests may be covering more than I thought. I was under the impression that the @classmethods weren't getting tested at all since they didn't appear flagged in the coverage report. thx for the help Commented Apr 9, 2015 at 1:08

0

Your Answer

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