code coverage support in PyCharm
Just wondered if there was a way of using code coverage during unit tests in PyCharm? I know that it supports 'nose' tests but when I edit my configuration to include the parameter --with-cover to turn on coverage, I don't get a coverage report, but I do from running 'nosetests --with-cover' at the command line.
PyCharm definitely seems to be the best Python IDE, if it could flag up code coverage issues as well, that would be very useful!
If there is a way to plug in code coverage reports to the IDE via a plugin, I'd be happy to write that as well.
Cheers,
Mark
Please sign in to leave a comment.
ok I did find this issue in youtrack: http://youtrack.jetbrains.net/issue/PY-2277
If there is already some code coverage support lurking in the codebase due to its IntelliJ heirtage, I would be happy to wire that up to a code coverage report...
Hello Mark,
The code coverage support is available in the platform, but it's not part
of the open-source Community Edition codebase. Code coverage support for
Python is currently on our roadmap for PyCharm 2.0.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Excellent news! Is there a timescale on when that or a beta might be available?
Hello Mark,
The EAP for PyCharm 2.0 will likely start in September, but I'm not sure
whether code coverage support will be available in the first EAP builds.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"