Open catherio opened 2 hours ago
To help investigate this issue, please provide a minimal reproducible example. Here's what that could look like:
# test_example.py
def test_abc():
assert True
def test_def():
assert True
Then show:
pytest -k "test_a.*"
)For example:
$ pytest -k "test_a.*" test_example.py
# Expected: test_abc runs, test_def is skipped
# Actually got: [your actual result here]
This will help us understand and reproduce the issue you're experiencing with regex patterns in the -k flag.
I want to run a selective number of tests, so -k should take in a regexp string