Skip to content

bugfix #13224: hide progress dots in --quiet mode#14238

Open
steinsag wants to merge 1 commit intopytest-dev:mainfrom
steinsag:bugfix/13224-do-not-show-progress-dots-on-quiet
Open

bugfix #13224: hide progress dots in --quiet mode#14238
steinsag wants to merge 1 commit intopytest-dev:mainfrom
steinsag:bugfix/13224-do-not-show-progress-dots-on-quiet

Conversation

@steinsag
Copy link

closes #13224: do not show progress dots in --quiet mode

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Feb 25, 2026
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-qq or -qqq should trigger this, just quiet should not

@nicoddemus
Copy link
Member

-qq or -qqq should trigger this, just quiet should not

I agree, but let's settle on -qq then.

Besides this, we also need an integration test to ensure it works and does not regress in the future.

@indoor47

This comment was marked as spam.

@steinsag
Copy link
Author

-qq or -qqq should trigger this, just quiet should not

I agree, but let's settle on -qq then.

Besides this, we also need an integration test to ensure it works and does not regress in the future.

@nicoddemus

What would be the long version of -qq? --quiet --quiet?

Can you give me pointers how to write an integration test like pointing me at an example?

@indoor47
Copy link

Sorry, this went a bit out of hand, won't happen again. Cheers, D.

@steinsag
Copy link
Author

ping @nicoddemus & @RonnyPfannschmidt

What would be the long version of -qq? --quiet --quiet?

Can you give me pointers how to write an integration test like pointing me at an example?

@RonnyPfannschmidt
Copy link
Member

Q is the short option for quiet

Repeating works the same with long versions

For sanity i recommend testing only with short options

Argparse internally manages the rest

@nicoddemus
Copy link
Member

To complement @RonnyPfannschmidt's answer:

Argument parsing already handles -qq, no need to change anything. When -qq is given, config.getoption("verbose") returns -2.

The integration test should:

  • Use pytester (see examples in the test suite)
  • Execute a small test suite with a few tests: most of them might all contain pass and not really do anything, except at one of them should fail.
  • Check that nothing is output except for the errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest to be completely quiet when asked

4 participants