-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support for single reinstall in Jest multi worker mode #1331
Comments
Any idea how to make this work @noomorph? One possible workaround I can think about is to add a functionality to |
@rotemmiz The workaround with Something that might help for detecting workers is the |
I have some ideas on this but I need to conduct my own investigation. |
detox test --reuse worked for me |
Hey, we managed to solve this based on jest-environment-puppeteer implementation What we did:
Proof of concept: jest-environment-detox Currently, some things might not be working/buggy, but what do you think? @rotemmiz |
@HammadJ, must have been fallen between the cracks, sorry. Looks interesting, I'll look closer. |
Can't look in the nearest future, sorry, maybe on Friday but not likely. Got many other tasks at the moment. |
@noomorph No worries, we are using it in our project successfully, no rush to integrate right away. Thanks for your attention and support on this! |
Hey, can we integrate this into detox? We found there are some changes in the internal APIs that prevents the workaround from working 😢 |
Hello! We found that on the version 15.1.4, you also need to pass in both So we'll need to change https://github.com/stashaway-engineering/jest-environment-detox/blob/master/lib/global.js#L25
to
Cheers! |
Seems like still an issue! has there been any updates on this ? It would be helpful if someone gave minimal example I am passing runInBand and reuse as well but still same result |
We plan to close this issue in Detox 20 after one more heavy refactor. |
@noomorph but is there any workarounds to get it to work right now ? |
@ShivamJoker I don't think there are easy ones. @d4vidi the question made me wonder if we can adjust
WDYT? |
We'll try to take it in Detox 20, but not promising... |
Well 1st thing's 1st, I don't understand the use case for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this reporsitory, read this discussion. |
This will be addressed under the DAS project (device allocation will include app install - at least by default), and no sooner. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this reporsitory, read this discussion. |
This aligns with our future vision for the DAS project. I see no point in keeping it here as well. |
Is your feature request related to a problem? Please describe.
Carrying on from the discussion here: #1279
Describe the solution you'd like
Detox should only install the app once per worker instead of reinstalling for every test file.
Describe alternatives you've considered
There's some workarounds using
--reuse
, but they only work with--runInBand
or--workers 1
.The text was updated successfully, but these errors were encountered: