-
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
Detox test overwrites mocha grep option with --grep :android: --invert #712
Comments
For mocha you don't need to use Detox command line tool. Every detox cli param is passed almost with no change. |
@Ljo2017 if you provide a function covered with integration tests that is able to merge |
@noomorph we've made changes to merge the platform grep expression with the existing grep options in mocha.opts file and tried to make a pull request but got a permission denied error. ERROR: Permission to wix/detox.git denied to Ljo2017. Could you give me access to the repository to make a pull request? |
@Ljo2017 , please follow the regular GitHub workflow for pull requests.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
It seems that when running detox test, the grep options in mocha.opts gets overwritten by detox test and therefore not recognised.
Detox command used:
detox test -c ios.sim.release
Log:
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.release --grep :android: --invert
detox info 15:09:15: server listening on localhost:60573...
detox info 1: Searching for device matching iPhone 7...
It looks as if --grep :android: --invert overwrites the grep option in mocha.opts.
If I run the command below, the grep option in mocha.opts is recognised:
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.release
Can we have this automatic platform deduction logic removed? Or is there any way not to have the mocha.opts option overwritten?
The text was updated successfully, but these errors were encountered: