Running pytest -vv should make your output more verbose. If you want your output to be less verbose, try pytest -q or pytest --quiet.
Videos
Running pytest -vv should make your output more verbose. If you want your output to be less verbose, try pytest -q or pytest --quiet.
Sometimes using a higher log level might reduce the pytest output clutter. For example, using
pytest <my_test_folder> --log-cli-level=warning
Different options for log level (from most verbose to least verbose) are: debug, info, warning, error and critical.
The below article explains very well how to run python tests in VS code. But how do I run the tests as verbose when I hit the run text button ? Is there away to configure that.
https://code.visualstudio.com/docs/python/testing
I’ve just been using the terminal to run verbose tests , wondering is there is a lazy way to hook it to test run button :)
If you scroll down in the very same documentation page, you ll see a setting to pass unittest args. there you can specify your verbosity flag.
https://code.visualstudio.com/docs/python/testing#_unittest-configuration-settings
of course this is available for all the supported testing frameworks (unittest, pytest, nosetests)
Not absolutely positive this works on python, but you can edit the JSON files for that to substitute in the command line expressions you use on the terminal