Urucas / cordova-test

cli-tool to automate Appium tests suite for Cordova apps
MIT License
6 stars 8 forks source link

Incompatable with mocha 3.x #18

Open charlesverge opened 7 years ago

charlesverge commented 7 years ago

When executing cordova-test android tests/mocha/ global install of mocha was needed as the 2.5.3 appear to of been ignored. npm install -g mocha@2.5.3

With a newer version of mocha the following error appeared

1) Test example tests Checking button action should click a button: Error: Resolution method is overspecified. Specify a callback or return a Promise; not both. at /usr/local/lib/node_modules/wd/node_modules/q/q.js:2027:17 at runSingle (/usr/local/lib/node_modules/wd/node_modules/q/q.js:137:13) at flush (/usr/local/lib/node_modules/wd/node_modules/q/q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)