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

error trying to run e2e tests #4

Closed
adigrinvald opened this issue Aug 2, 2016 · 6 comments
Closed

error trying to run e2e tests #4

adigrinvald opened this issue Aug 2, 2016 · 6 comments

Comments

@adigrinvald
Copy link

Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "e2e"
npm ERR! node v5.8.0
npm ERR! npm v3.8.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] e2e: mocha e2e --opts ./e2e/mocha.opts
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] e2e script 'mocha e2e --opts ./e2e/mocha.opts'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the rn-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mocha e2e --opts ./e2e/mocha.opts
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs rn-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls rn-example
npm ERR! There is likely additional logging output above.

@talkol
Copy link

talkol commented Aug 2, 2016

Please pull latest version (added a minor fix to react ver but it shouldn't make a difference)

Also take a look at https://github.com/wix/detox/blob/master/rn-example/README.md
Your issue looks like missing requirements, I added Requirements section to the readme to make sure your system has everything needed to run this example

I just ran the example locally with all the requirements and it works smoothly

@talkol
Copy link

talkol commented Aug 2, 2016

Another thing, can you please try to type mocha in the rn-example project directory and see if mocha is in the path?

@adigrinvald
Copy link
Author

-bash: mocha: command not found

@talkol
Copy link

talkol commented Aug 2, 2016

ok.. try npm install mocha -g
if so, I'll add it to the requirements
usually ./node_modules/.bin is in the path so it should find the locally installed version, but the global install will take care of it either way

@talkol
Copy link

talkol commented Aug 2, 2016

I pushed a small fix that will use the local mocha explicitly, so if you pull you won't need to npm install mocha -g anymore

@talkol
Copy link

talkol commented Aug 2, 2016

please re-open if issue still isn't fixed, thanks for the feedback!

@talkol talkol closed this as completed Aug 2, 2016
@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

3 participants