TestArmada / boilerplate-nightwatch

An example magellan automated testing project with nightwatch.js tests
MIT License
51 stars 46 forks source link

npm run test:desktop fails #61

Closed mcrowder65 closed 6 years ago

mcrowder65 commented 6 years ago

Running npm run test:desktkop gives me this. I have travis.dev mapped to 127.0.0.1 in my host file.

m-c02tr0mug8wl:boilerplate-nightwatch m0c018p$ npm run test:desktop

> testarmada-boilerplate-nightwatch@3.0.0 test:desktop /Users/m0c018p/boilerplate-nightwatch
> DPRO=local ./node_modules/.bin/magellan --local_browsers chrome --test tests/demo-web.js --serial --strategy_bail testarmada-magellan-early-bail-strategy

[INFO] [Magellan] Will try to load configuration from default of ./magellan.json
Loaded configuration from:  /Users/m0c018p/boilerplate-nightwatch/magellan.json
[INFO] [Magellan] Magellan is creating temporary files at: /Users/m0c018p/boilerplate-nightwatch/temp
[INFO] [Magellan] Magellan 10.1.0
[INFO] [Magellan] Loaded test framework:
[INFO] [Magellan]   testarmada-magellan-nightwatch-plugin
[ERROR] [Magellan] There are errors in loading executors
[ERROR] [Magellan] Error: Cannot find module './lib/executor'
[ERROR] [Magellan] Error: Cannot find module './lib/executor'
[INFO] [Magellan] Loaded test executors:
[INFO] [Magellan] Enabled bail strategy:
[INFO] [Magellan]   testarmada-magellan-early-bail-strategy: Magellan will bail if failure ratio exceeds a threshold within a given period
[INFO] [Nightwatch Plugin] test iterator found nightwatch configuration at: ./conf/nightwatch.json
[INFO] [Nightwatch Plugin] Scanning tests for test files ...
[INFO] [Nightwatch Plugin] Found 3 test files in tests
[INFO] [Nightwatch Plugin] Using nightwatch test filter: tests/demo-web.js

npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/m0c018p/.nvm/versions/node/v6.11.2/bin/node" "/Users/m0c018p/.nvm/versions/node/v6.11.2/bin/npm" "run" "test:desktop"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! testarmada-boilerplate-nightwatch@3.0.0 test:desktop: `DPRO=local ./node_modules/.bin/magellan --local_browsers chrome --test tests/demo-web.js --serial --strategy_bail testarmada-magellan-early-bail-strategy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testarmada-boilerplate-nightwatch@3.0.0 test:desktop script 'DPRO=local ./node_modules/.bin/magellan --local_browsers chrome --test tests/demo-web.js --serial --strategy_bail testarmada-magellan-early-bail-strategy'.
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 testarmada-boilerplate-nightwatch package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     DPRO=local ./node_modules/.bin/magellan --local_browsers chrome --test tests/demo-web.js --serial --strategy_bail testarmada-magellan-early-bail-strategy
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs testarmada-boilerplate-nightwatch
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls testarmada-boilerplate-nightwatch
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/m0c018p/boilerplate-nightwatch/npm-debug.log
mcrowder65 commented 6 years ago

I'm on MacOS Sierra.

archlichking commented 6 years ago

@mcrowder65 your npm install failed. these executors need to be transpiled in post npm install.

mcrowder65 commented 6 years ago

Maybe you should consider not using geckodriver? It is blocked on internal Walmart wifi. I think one of its dependencies is using a direct github URL instead of all npm

archlichking commented 6 years ago

This repo isn't for walmart only, it's also the boilerplate for the public. If you think any dependency may cause the issue by walmart internal wifi please remove them from package.json.