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

Run test files/suites in parallel (not describes within them) #129

Closed
rossanthony opened this issue Apr 10, 2018 · 3 comments
Closed

Run test files/suites in parallel (not describes within them) #129

rossanthony opened this issue Apr 10, 2018 · 3 comments

Comments

@rossanthony
Copy link

rossanthony commented Apr 10, 2018

Based on the options available today with mocha-parallel-tests is it possible to run a series of test files/suites in parallel? In other words; make it execute each of the describes inside each file/suite consecutively, but would run multiple test files/suites simultaneously?

The reason I ask is that we have some describes inside certain test suites that need to happen in order otherwise they will give false negatives. But the test suites/files themselves are independent of one another and should be able to run in any order as long as the describes within them are run consecutively.

@1999
Copy link
Collaborator

1999 commented Apr 10, 2018

Currently this files/suites behaviour is not well documented. I'm working on v2 which should run all top level describes in parallel. But maybe it's worth it to add an option to run just files in parallel.

@rossanthony
Copy link
Author

Sounds good, so with v2 as long as all of our test files contain one top level describe, even if there are many nested describes and it’s within, we could achieve the desired effect of running just the files in parallel?

If it’s not too much trouble then I think adding an option could be cool, so it would be more obvious what’s going on. Also I guess it would have the added benefit that we wouldn’t have to worry about refactoring test suites to ensure they contain just one top level describe if there’s an option that can be passed when running.

How far away is v2 by the way? Is there anything I can help out with?

@1999
Copy link
Collaborator

1999 commented May 22, 2018

Sorry for silence. v2 is here, changelog should be up to date.

@1999 1999 closed this as completed May 22, 2018
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