How do I create a temporary run/debug configuration for a py.test test function?
For a long time I could press Ctrl+Shift+F9 while in a test function I am writing and pycharm would create a new temporary run/debug configuration that calls py.test with the correct parameters under the debugger. Likewise, Ctrl+Shift+F10 would call py.test without debugging.
While trying out EAP versions of pycharm, this stopped working: The shortcut still creates a temporary run/debug configuration. However, it now simply runs the test script (e.g. '/home/user/project/django/tests/some_app/the_test_module.py') instead of 'pytest -k test_function_name'.
To make matters worse, I cannot reproduce the intended behaviour on earlier versions, not even on the latest stable version.
What can I do so pycharm will create run/debug configurations that use py.test?
Please sign in to leave a comment.
I just found this answer https://intellij-support.jetbrains.com/hc/en-us/community/posts/205810659-Py-test-quickly-run-just-current-test-file-or-currently-selected-test-function?page=1#community_comment_205693315
In pycharm 2016.3.2 I was able to debug an individual test function, so there is hope :-D
Well! After running in circles for a few hours (up- and downgrading pycharm, installing plugins, waiting for 'indexing...' to complete) I know have the desired functionality back.
So I consider this one solved.