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
Non-blocking it() calls #1902
Comments
Checkout https://github.com/danielstjules/mocha.parallel You could change that single Given that this "parallel" behavior is a bit tricky (and requires domains for clean exception handling), I can't see it being introduced into the core runner. |
never say never, but it would require a rewrite of |
domain support is another issue (#513) but definitely should be a prereq to anything like this |
Agreed. It would be nice if the browser could offer some sort of equivalent to domains. But even node is dropping them in favor of a solution that hasn't yet been completed. :( I think they're a poor solution for error handling in most projects, but there's some exceptions (like a test runner haha) where I think they'd be helpful. |
I think it'd be nice to keep browser and node logic (including error handling) as close as possible, and thus avoid domains, as we're not yet doing much in regards to browser tests. Though I guess the bigger issue is that we should start setting up automatic browser integration tests. It'd be a great way to avoid regressions too. |
I am sure you have had this question before but I am really struggling to find information about this online.
I am looking for a way to make
it()
calls non-blockingcurrently, if I run this code:
then I get this output:
as you can see, and as you probably know, the
it()
callbacks are delayed such that oneit()
doesn't run before the previous one completes - in other words, they are synchronous or blocking.Is there a way around this?
My tests take too long to run as is!
The text was updated successfully, but these errors were encountered: