How do I select which pytest
tests to run from a file?
For example, a file foo.txt
containing a list of tests to be executed:
tests_directory/foo.py::test_001
tests_directory/bar.py::test_some_other_test
Similarly,
pytest -k
allows a single pattern.
One option is to have a pytest.mark
against each test, but my requirement is to run different combination of tests from different files.pytest
?