I've tried the following:
python -m pytest ./subfolder -k 'test_common_fields'
This doesn't work at all. It finds nothing but this test exists in that subfolder's file of the same name 'subfolder/test_subfolder.py'
I tried entering full path: -k 'subfolder/test_subfolder.py::test_common_fields' and without "subfolder" path. Nothing.
On Ubuntu, I generally use py.test --verbose -k testcase_1 test_xyz.py
How do you specify the only test to run with pytest k parameter?