You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to specify a specific file you have to do this
detox test --file 'some/file.js'
to test a folder you have to do this
detox test --specs 'some/folder'
and there's a PR open to allow for regex #1083 which you will be able to do like this
detox test --file 'some/**/*.js'
detox test --specs 'some/**/*.js'
Both Mocha and Jest have their setups to already support this by simply passing in all extra files at the end of the commands without having to specify --file or --specs.
jest 'something/**/*.js'
mocha 'something/**/*.js'
Detox can simplify it's arguments and make it more consistent with both of these testing libraries by following their pattern since commander already supports this simple feature.
This is pretty easy to implement all you would have to do is change this line to be
.command('test [testPattern...]]', 'Initiating your test suite')
and then deprecate the --file and --specs so that it shows they're deprecated but will still work.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions.
Currently to specify a specific file you have to do this
to test a folder you have to do this
and there's a PR open to allow for regex #1083 which you will be able to do like this
Both Mocha and Jest have their setups to already support this by simply passing in all extra files at the end of the commands without having to specify
--file
or--specs
.Detox can simplify it's arguments and make it more consistent with both of these testing libraries by following their pattern since commander already supports this simple feature.
This is pretty easy to implement all you would have to do is change this line to be
and then deprecate the
--file
and--specs
so that it shows they're deprecated but will still work.The text was updated successfully, but these errors were encountered: