Pycharm does not generate test stub with Alt + Insert -> Test...


what do I have to do, so that the Generate Menu Item - Test... generates a test method stub?

The existing tests are recognized and are running. The file is named and contained in below root in the folder "tests"

This is my first Python project. So I do not know how to set this as test resource like in a Java Maven Project. At least I only found in the project structure the possibility to mark folders as sources.



Comment actions Permalink

To generate a test stub for a function, you need to place caret on that function declaration, hit Alt+Insert, and you should be able to select "Test" from the list.

Comment actions Permalink

No sadly it does not.


Please sign in to leave a comment.