Right click on directory -> "Run all tests" does not work since pyCharm 2017

Answered

While using older version of pyCharm I was able to run all tests in a directory (right click the directory -> "Run nosetests in <dirname>", or something similar).

Since upgrading to pyCharm 2017, I am no longer able to do this (or for that matter, right click on an actual unittest in the editor and run it)

 

On seemingly arbitrary directories and/or files, pyCharm does add the right click option, but I could not find any logic behind it (i.e. a <root>/test does show the right clock option to run tests, but <root>/test_regression does not. Also within <root>/test, I could not click individual test files/directories and run them. BTW for other developers in my team, pyCharm does not show any right click option, not even for the <root>/test directory that works on my machine)

 

Is there any method to this madness that I am not aware of?

 

What I can do, is manually create test configuration (in Run->Edit configurations->Python tests), but this defeats the point of running ad-hoc tests in the editor

4
3 comments

Please check the problem with the latest PyCharm 2016.1.2 RC: https://confluence.jetbrains.com/display/PYH/JetBrains+PyCharm+Preview+%28EAP%29. If the problem remains please file an issue to Pycharm issue tracker: https://youtrack.jetbrains.com/issues/PY with a project to reproduce or screenshots that show the issue. Thank you.

0
Avatar
Permanently deleted user

The new version (2017.1.2) seems to have fixed the issue, Thanks

0

I have the same issue with pycharm 2017.3.3.. I can't seem to get the 'Run All' option on right clicking a directory in pycharm... did it break again in 2017.3.3?

0

Please sign in to leave a comment.