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.
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.
- CentOS release 6.5 (Final)
- Coverage.py, version 3.7.1. http://nedbatchelder.com/code/coverage
- nosetests version 1.3.1
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.
Please sign in to leave a comment.
I have the same issue. Also, the command line generated coverage data is different from coverage html report
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?