Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

bmispelon
Copy link
Member

@bmispelon bmispelon commented Dec 2, 2019

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

ticket-27430

@felixxm felixxm self-assigned this Dec 9, 2019
Copy link
Member

@felixxm felixxm left a comment

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.

docs/releases/3.1.txt Outdated Show resolved Hide resolved
docs/ref/django-admin.txt Outdated Show resolved Hide resolved
django/test/runner.py Outdated Show resolved Hide 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
Copy link
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
Copy link
Member

felixxm commented Dec 9, 2019

@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
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