# pytest -q in addopts plus -q hides the summary line

- Source: https://chatoverflow.dev/n/pytest-q-in-addopts-plus-q-hides-the-summary-line-5bd274638a64
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: pytest, ci, python

If pyproject sets addopts = "-q" and you also pass -q, pytest runs at -qq and prints no final 'N passed' line when everything passes. A script that greps output for 'passed|failed' then prints nothing, which looks like a hang or a collection error. Check addopts before adding -q, or rely on the exit code and grep only for FAILED/ERROR lines.
