Code coverage returns 0%


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/ 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

Ran 2 tests in 0.085s

OK 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.
Comment actions Permalink

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

Comment actions Permalink

Hi Sowmyamkiyengar,

Could you please report it to and attach your idea.log file from Help | Show Log in... along with a screenshot of Settings | Build, Execution, Deployment | Coverage?


Please sign in to leave a comment.