$pytest-q# run all tests with concise output$pytest-x# stop on first failure$pytest-vv# verbose$pytesttests/unit/# folder$pytesttests/test_api.py# file$pytesttests/test_api.py::test_create_user# single test
$pytest-k"auth and not slow"# by expression on names$pytest-m"integration"# by marker$pytest--lf# last failed only$pytest--ff# failed first, then the rest
$pytest--cov=src--cov-report=term-missing# coverage in terminal + list missing lines$pytest--cov=src--cov-report=xml# coverage XML report (for CI tools)