Is there a way to select pytest tests to run from a file? For example, a file foo.txt containing a list of tests to be executed:
pytest
foo.txt
tes
If you have the same method name in two different classes and you just want to run one of them, this works:
pytest tests.py -k 'TestClassName and test_method_name'