running a test with a specific parameter value in pycharm pytest plugin

Viewed 258

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 Answers

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

Related