RostSunshine
RostSunshine

Reputation: 246

In pytest what is "quiet" mode, and what is the purpose?

I am currently learning pytest and going through the documentation it is not clear what "quiet" mode is and what the reason for using it is. Can anyone clarify this to me?

In the documentation I see it is denoted with -q like such:

$ pytest -q test_sysexit.py

But what does this do?

Upvotes: 6

Views: 6675

Answers (1)

Elijas Dapšauskas
Elijas Dapšauskas

Reputation: 1247

Adding -q option will make pytest to be more concise in its output to the console.

There are more options similar to it:

  • -qq will make pytest output even less information than -q.
  • -v to output more information than the default amount.

Source: run pytest --help in shell:

    -v, --verbose         increase verbosity.
    -q, --quiet           decrease verbosity.

Upvotes: 4

Related Questions