What does the `-svv` flag mean when running pytest via the command line interface?

Viewed 294

Can anyone explain what the -svv flag means/does when running pytest from command line? Such as:

pytest -svv

This is really driving me crazy, as I can't find it in pytest's official documentation, its code base or through a web search.

1 Answers

This is the same as passing

pytest -s -vv

where

-s disables capturing of stdout/stderr (source)
-vv enables verbose output (source)

Specifically note that the increased verbosity specifier currently has no effect in base pytest above normal increased verbosity

Using higher verbosity levels (-vvv, -vvvv, …) is supported, but has no effect in pytest itself at the moment, however some plugins might make use of higher verbosity

Related