Can I configure default verbosity in pycharm setting? If so where can I setup that?

Viewed 72

Now I'm using terminals to achieve specific verbosity for Pytest framework as below,

enter image description here

I'm looking for default options/settings in pycharm to set my verbosity level as "2" instead of feeding in terminals every time.

Specifications are:

Python 38

Pycharm 2020.3

Pytest 6.2.2

1 Answers

If you've got pytest set up as your default test framework you can modify the test configuration.

When running your test, click on that wrench icon, on the left. It says Modify Run Configuration.

enter image description here

Then, in the context window go to Additional Arguments and type your pytest args. For example:

enter image description here

Finally, when you run the tests, you should see something along the way of:

Launching pytest with arguments -v --tb=long

enter image description here

Related