Opened 2 years ago

Last modified 16 months ago

#27430 assigned New feature

` test` does not support unittest `-b` buffer option

Reported by: Paul Tiplady Owned by: Eyad Toma
Component: Testing framework Version: 1.10
Severity: Normal Keywords:
Cc: Jackie Leng, Hugo Osvaldo Barrera Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Paul Tiplady)

Unittest supports buffering of test output with the -b flag, such that passing tests do not spam stdout/stderr with output. This is the default behaviour for nosetests, as well.

I can't see any way to enable this behaviour in test. Has adding support for this flag been considered?

Currently my workaround is to use nosetests (with django-nose), but that test runner appears to be bugged WRT the new --parallel flag, so it's not a perfect solution.

Change History (6)

comment:1 Changed 2 years ago by Paul Tiplady

Description: modified (diff)

comment:2 Changed 2 years ago by Paul Tiplady

Description: modified (diff)

comment:3 Changed 2 years ago by Jackie Leng

Cc: Jackie Leng added
Triage Stage: UnreviewedAccepted
Type: UncategorizedNew feature

Verified on master, there is no -b option or any option that seems to work the same way.

comment:4 Changed 2 years ago by Eyad Toma

Owner: changed from nobody to Eyad Toma
Status: newassigned

comment:5 Changed 23 months ago by Mads Jensen

There is a humble, yet incomplete attempt at this in in case someone wants to complete it.

comment:6 Changed 16 months ago by Hugo Osvaldo Barrera

Cc: Hugo Osvaldo Barrera added
Note: See TracTickets for help on using tickets.
Back to Top