Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Detox once initiate the app for every test suite though the suite is skipped or excluded #987

Closed
yogeshthanvi opened this issue Oct 18, 2018 · 1 comment

Comments

@yogeshthanvi
Copy link

Issue :
There is an option to skip test suites by using skip or xdescribe but when the test runner is jest then irrespective of the keyword (skip or xdescribe) the app gets initiated for every test suite i.e. if there are 10 test suites and 9 have skipped then also the app is getting initiated for 10 times for each suite.

Needed Solution :
Detox should not initiate the app for every test suites only for those where the execution is needed or test suites which are included in test execution.

@rotemmiz
Copy link
Member

Detox does not control the lifecycle, it merely suplies init and cleanup functions. What you describe is impossible to solve in Detox, and is actually an issue of Jest (there are a few open issues in Jest regarding that).
You can always usedetox test -f filePath flag on Detox command line for more fine-grained runs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 21, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants