2
votes

I'm running tests from the pycharm pytest plugin and very happy with it. However, once I finish running a test with parameters that looks like this:


    @pytest.mark.parametrize("my_param", [
        "aaa",
        "bbb",
        "ccc",
    ])
    def test_it(self, my_param):

I often would like to re-run only the "bbb", but when I right-click it and select "Run pytest" I get "no tests found in testsuite".

Is there some option/workaround I'm missing?

1
Works fine for me, though I use PyCharm Professional, where pytest support is build-in - I guess you use the Community version? - MrBean Bremen
Community has the same pytest support. The problem sounds similar to youtrack.jetbrains.com/issue/PY-31836 which was caused by spaces in test node ids. Try 2020.1 EAP build jetbrains.com/pycharm/nextversion the problem should be obsolete there. - Pavel Karateev

1 Answers

0
votes

cli is your friend, you can select a specific parametrized test, consider keyword selector -k bbb