I have tests in pytest, each test has a unique marker that correlates to a test case number in TestRail, our test management system
Example:
@pytest.mark.C1234
def test_mytestC1234():
pass
@pytest.mark.C1235
def test_mytestC1235():
pass
I know I can run the tests from the command line:
pytest -m C1234 OR C1235
Is there a way to run the list of the markers from a file. The file will be built on the fly based on a test plan found in TestRail
The issue is that this list can get VERY large and a command line can not support that many characters.
Something like:
pytest -mf myfile.txt
Where the file myfile.txt contains a list of the markers.