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

Parallel Simulator support #97

Closed
saikrishna321 opened this issue Mar 7, 2017 · 12 comments
Closed

Parallel Simulator support #97

saikrishna321 opened this issue Mar 7, 2017 · 12 comments

Comments

@saikrishna321
Copy link

as FBSimulator support parallel run, does detox also allow users to run tests in parallel sim?

@rotemmiz
Copy link
Member

rotemmiz commented Mar 7, 2017

Hey @saikrishna321 , not at the moment, but this is something we consider, that's one of the main reasons we chose fbsimctl.

@LeoNatan
Copy link
Contributor

LeoNatan commented Jul 7, 2017

Xcode 9 / iOS 11 simulator runtime has native support for multiple concurrent simulators. Sounds to me like a good idea to see if we can remove fbsimctl use.

@fbartho
Copy link

fbartho commented Jan 24, 2018

2018 checkin! -- I'd very much hope for this feature!

@DanielMSchmidt
Copy link
Contributor

I think it is currently work in progress: https://twitter.com/rotemmiz/status/938108324523986944

@fbartho
Copy link

fbartho commented Jan 25, 2018

@DanielMSchmidt -- I saw that thread back in December (and commented), but at the time, I didn't know who anybody was (I hadn't been following things). I lost track of the twitter thread, and came to GitHub to see if this feature was on the roadmap. I can't wait for @rotemmiz work to ship!! ❤️

@rotemmiz
Copy link
Member

rotemmiz commented Jan 25, 2018

Hey guys,

The development on parallel support have been delayed for other (internal) more urgent things (+ a week of marking the check box on the seasonal flu).

The main issue was Jest 21 at the time, which its lifecycle did not support initialization per process (as opposed to per suite). Jest 22 now offers parallelization with support of custom runner (jest-runner-mocha in our case). I will get back to the task soon (hopefully in the next couple of weeks).

Anyway, you can follow the development of the feature here
https://github.com/wix/detox/tree/parallelSupport

@tomatobrown
Copy link

@rotemmiz are you saying that if we get parallel support working that we should be dependant on using Jest?

@rotemmiz
Copy link
Member

Support has just landed in master with the merge of #609 .
This has no real relation to Jest, we just made Detox process safe. The critical part of choosing a free device to run on and then commiting it to just one process is the essence of the multi sim support. Jest supports parallelization with execution of multiple processes, but there are other test runners which do the same, like AVA. Unfortunately Mocha does not support parallelization.

@rotemmiz
Copy link
Member

This will be shipped with Detox 7.4.0

@tomatobrown
Copy link

thanks for doing this, will there be any documentation or a sample project of how to use this?

@LeoNatan
Copy link
Contributor

Please open a new issue for the missing documentation.

@rotemmiz
Copy link
Member

It is part of the cli documentation
https://github.com/wix/detox/blob/master/docs/APIRef.DetoxCLI.md#test

--workers

You are right though, we need to add notes on what it actually does under the hood when running in this mode.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants