Skip to content

Reduce test spam by using unittest output buffering#819

Closed
awwad wants to merge 1 commit intodevelopfrom
quieter_tests
Closed

Reduce test spam by using unittest output buffering#819
awwad wants to merge 1 commit intodevelopfrom
quieter_tests

Conversation

@awwad
Copy link
Contributor

@awwad awwad commented Jan 8, 2019

After merge, stdout should only appear if a test has failed. This functionality is provided by unittest.main argument buffer=True. This functions like the --buffer command line argument listed here. std out is discarded if a test succeeds.

stdout will only appear if a test has failed.  This is provided
by unittest.main argument buffer=True.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
@lukpueh
Copy link
Member

lukpueh commented Jan 8, 2019

FWIF you can also configure buffer=True only once on your unittest.TextTestRunner instance in aggregate_tests.py#L94.

@awwad
Copy link
Contributor Author

awwad commented Feb 19, 2019

Closing in favor of #825.

@awwad awwad closed this Feb 19, 2019
@trishankatdatadog trishankatdatadog deleted the quieter_tests branch November 5, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants