Is there an easy way to run the whole words matched case only in pytest?

Viewed 11

I can use -k to run the name matched cases in pytest, however I have many matched cases, is there a way to run the whole matched case only?

python -m pytest -k mytest

# as i have many matched cases, all below cases would be run
# Test.mytest
# Test.mytest1
# Test.mytest2
# ...

Is it possible run Test.mytest only?

0 Answers
Related