pytest fail a test code example
Example 1: pytest run only failed test
pytest --last-failed
Example 2: python run pytest
Just type this in shell:
pytest
Or this if that does nott work:
python -m pytest
pytest --last-failed
Just type this in shell:
pytest
Or this if that does nott work:
python -m pytest