pytest -q
The pytest option that shortens output to a dot per passing test and a one-line summary.
In more detail
The course uses it for most runs so the interesting part of the report fits on screen. It can be combined with other options, such as -q --tb=short.
Example
pytest -q test_cart.pyRelated terms
- pytest -v — The pytest option that prints each test's node ID and result on its own line instead of one dot per test.
- --tb — The pytest option that chooses how much of each failure's traceback to print, from long to short to none.
Taught in
- The Cost And Value Of A Test — Automated Testing, TDD & Quality Engineering
- Introducing pytest — Automated Testing, TDD & Quality Engineering