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

Writing parallel tests #81

Closed
kkaefer opened this issue Nov 25, 2011 · 2 comments
Closed

Writing parallel tests #81

kkaefer opened this issue Nov 25, 2011 · 2 comments

Comments

@kkaefer
Copy link
Contributor

kkaefer commented Nov 25, 2011

What is the intended way to write tests that run in parallel and that need to sync up at a certain point? E.g. I'd love to convert the DB opening test to run in parallel, but they need to sync up at the end. This was easy with beforeExit but it looks like it requires a lot more custom code or third party control flow libraries (like Step) with mocha.

@tj
Copy link
Contributor

tj commented Nov 25, 2011

one thing i was considering is something like expect(2) to allow calling done() twice, making stuff like that trivial, though it would still be easy with var pending = 2; dostuff(function(){ --pending || done() }) etc

@tj
Copy link
Contributor

tj commented Dec 23, 2011

decided against adding extra complexity of something like expect() for now

@tj tj closed this as completed Dec 23, 2011
@aearly aearly mentioned this issue May 16, 2013
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

No branches or pull requests

2 participants