pytest Command Examples

Run Python tests. More information: https://docs.pytest.org/.

pytest {{path/to/test_file1.py path/to/test_file2.py ...}}

pytest -k {{expression}}

pytest --exitfirst

pytest -m {{marker_name1 and not marker_name2}}

pytest --stepwise

pytest --capture=no