Code coverage returns 0%

Answered
Hello,

I've upgraded to pro version recently (3.4.1) and one of the reasons was code coverage support. Unfortunately I can't get it to work.
My configuration is as follows.


When I use system installed coverage, all tests run ok, no errors in the log, but I get 0% across the board.
With built-in coverage, I get this warning message:

/usr/lib/python2.6/site-packages/nose/plugins/manager.py:418: UserWarning: Module coverage was already imported from /xxx/pycharm-3.4.1/helpers/coverage/__init__.pyc, but /usr/lib64/python2.6/site-packages is being added to sys.path
  import pkg_resources

and
Ran 2 tests in 0.085s

OK

Coverage.py warning: Trace function changed, measurement is likely wrong: None

Coverage results are 0% in this case too.
My code doesn't use sys.settrace or anything similar.

Any help would be greatly appreciated.
2 comments
Comment actions Permalink

I have the same issue. Also, the command line generated coverage data is different from coverage html report

0
Comment actions Permalink

Hi Sowmyamkiyengar,

Could you please report it to https://youtrack.jetbrains.com/issues/PY and attach your idea.log file from Help | Show Log in... along with a screenshot of Settings | Build, Execution, Deployment | Coverage?

0

Please sign in to leave a comment.