Opened 19 months ago

Last modified 8 months ago

#27430 assigned New feature

`manage.py 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 manage.py 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 19 months ago by Paul Tiplady

Description: modified (diff)

comment:2 Changed 19 months ago by Paul Tiplady

Description: modified (diff)

comment:3 Changed 19 months 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 19 months ago by Eyad Toma

Owner: changed from nobody to Eyad Toma
Status: newassigned

comment:5 Changed 15 months ago by Mads Jensen

There is a humble, yet incomplete attempt at this in https://github.com/atombrella/django/commit/4ada8bb0000106982f2cd5fb11e5ccdc278aa1c8 in case someone wants to complete it.

comment:6 Changed 8 months ago by Hugo Osvaldo Barrera

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