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
--fast flag for test suite! #4167
Conversation
don't forget to rebase on PR #4165. |
actually just updated to be standalone. This PR doesn't interfere with #4165 |
nose_pkg_names.append('kernel') | ||
nose_pkg_names.append('kernel.inprocess') | ||
nose_pkg_names.insert(0, 'kernel') | ||
nose_pkg_names.insert(1, 'kernel.inprocess') | ||
if inc_slow: | ||
nose_pkg_names.append('parallel') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parallel is the slowest of all, shouldn't it be one of the first as well?
the output now looks something like this:
and |
and with |
Looks good to me. |
This is a wonderful addition, and with minimal work would probably suffice to close #1880 which I opened a year ago. The only thing I'd consider changing is the name of the flag, from
Does anybody else have thoughts on the name? |
Yeah, I'm all for a |
print('*'*70) | ||
print('IPython test group:',name) | ||
res = runner.run() | ||
all_res = p.map(do_run, runners) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to use imap_unordered
, so that results will arrive as they finish? They are still executed in the same order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The zip() just below currently relies on getting the results in the same order that they were submitted, though I'm sure there are ways around that if we want to use imap_unordered
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, then no big deal. But if @ivanov wants it, if do_run
just returned (x[0], x[1], ret), everything would be in sync and the zip would be unnecessary.
--fast flag for test suite!
runs the test suite in parallel, closes #1880