How do you test a single file in pytest? I could only find ignore options and no \"test this file only\" option in the docs.
Preferably this would work on the comman
This worked for me:
python -m pytest -k some_test_file.py
This works for individual test functions too:
python -m pytest -k test_about_something