Open dimberman opened 2 years ago
Upvote! 👍
It probably needs to be resolved in the IDE.
However, you can run the tests via the IDE without the buttons: If you click somewhere in the file in the editor window and press the "Run 'Python tests in test…'" shortcut (by default Ctrl + Shift + F10 for Windows and Linux and Control + Shift + R for MacOS) the tests should be executed via the IDE.
@dimberman we noticed the same problem. If you still prefix your test names with test_
, then PyCharm will pick those up and let you run them individually. They will also still roll up under the describe block in the output. It's the best of both worlds! :)
I've created a PyCharm issue now asking for support on the end of PyCharm. I don't think it's a big usability issue, but of course would be nice if that would be supported there.
Thanks @qutax and @jwsloan for posting the workarounds.
Hello all!
I'm testing out the library right now and I'm noticing that if I create describe scenarios in pycharm there doesn't seem to be a way to run single test. For normal pytest or unittest tests I can see a play button that allows running just that test
However when I try to run a pytest-describe scenario it seems I have to run the entire file to get those tests to run
Is there something I can do to have pycharm recognize this? I didn't see a specific pytest-describe plugin