Skip to content

Fixed #27430 -- Added -b/--buffer option to DiscoverRunner. - #12169

Merged
felixxm merged 1 commit into
django:masterfrom
bmispelon:ticket-27430-unittest-buffer
Dec 9, 2019
Merged

felixxm merged 1 commit into
django:masterfrom
bmispelon:ticket-27430-unittest-buffer

Conversation

@bmispelon

@bmispelon bmispelon commented Dec 2, 2019 •

Copy link
Copy Markdown
Member

I couldn't figure out how to make it work with parallel test execution

ticket-27430

@felixxm felixxm self-assigned this Dec 9, 2019

@felixxm felixxm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@bmispelon Thanks for this patch 👍 We should be able to test this option (see test_runner/test_discover_runner.py), you can add a new app to the test_runner_apps with tests that will write to the stdout and stderr and check captured output with and without failures.

Comment thread docs/releases/3.1.txt Resolved
Comment thread docs/ref/django-admin.txt Resolved
Comment thread django/test/runner.py Resolved
@felixxm felixxm changed the title Fixed #27430 -- Added support for unittest -b/--buffer Fixed #27430 -- Added -b/--buffer option to DiscoverRunner. Dec 9, 2019
@bmispelon
bmispelon force-pushed the ticket-27430-unittest-buffer branch from 9fbef2d to 16c330d Compare December 9, 2019 10:44
@bmispelon

Copy link
Copy Markdown
Member Author

Thanks for the review!

I've made the changes you requested (in separate commits, I'm not if you prefer that or a whole squahsed commit).
I've also rebased on the latest master to resolve the conflicts with the test you added for --pdb + --parallel.

@felixxm
felixxm force-pushed the ticket-27430-unittest-buffer branch from 457a209 to 9e56538 Compare December 9, 2019 12:48
@felixxm

felixxm commented Dec 9, 2019

Copy link
Copy Markdown
Member

@bmispelon Thanks 👍 I pushed minor edits and simplified tests.

@felixxm
felixxm merged commit 9e56538 into django:master Dec 9, 2019
@bmispelon
bmispelon deleted the ticket-27430-unittest-buffer branch December 9, 2019 13:23
@bmispelon

Copy link
Copy Markdown
Member Author

Thanks! ✨

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