setup.py testsuite running
Is there currently any way to configure PyCharm's testrunner to use a testsuite defined in setup.py? I've tried messing around with it, but haven't been able to make it work, but maybe I have just missed some incantation.
Please sign in to leave a comment.
Hello Jeroen,
The PyCharm testrunner doesn't have any awareness of setup.py at the moment.
You're welcome to file a feature request at http://youtrack.jetbrains.net/
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry, I will do that, thanks!
Edit: Logged as http://youtrack.jetbrains.net/issue/PY-2388
Thanks.
Some of these like unittest will let you select setup.py as the test script to run and it will discover tests that way. If your test runner is one of those supported, that should work fine and report test results directly in PyCharm. In my project I use nose and I just put the nose options from my setup.cfg into the PyCharm Run Configuration options (e.g. --all-modules --with-doctest --nocapture).
You can always create a normal Python run configuration and have it run setup.py with the test option, and that will force it to run with the designated test runner, but it may not report results back to PyCharm correctly.