admc / wd

A node.js client for webdriver/selenium 2.
Other
1.53k stars 402 forks source link

'npm run all_tests` is failing on Windows. #584

Closed AaronNGray closed 4 years ago

AaronNGray commented 5 years ago

npm run all_tests is failing on Windows and on Linux too.

aaron:~/github/wd$ npm run all_tests

> wd@1.11.1 all_tests /home/aaron/github/wd
> gulp test

[16:38:54] Using gulpfile ~/github/wd/gulpfile.js
[16:38:54] Starting 'test'...
[16:38:54] Starting 'lint'...

lib/callbacks.js
  line 120  col 17  'elId' is already defined.
  line 183  col 13  'elId' is already defined.

  ⚠  2 warnings

[16:38:54] 'lint' errored after 448 ms
[16:38:54] Error in plugin "gulp-jshint"
Message:
    JSHint failed for: lib/callbacks.js
[16:38:54] 'test' errored after 454 ms
[16:38:54] Error in plugin 'run-sequence(lint)'
Error
    at finish (/home/aaron/github/wd/node_modules/run-sequence/index.js:56:13)
    at Gulp.onError (/home/aaron/github/wd/node_modules/run-sequence/index.js:67:4)
    at Gulp.emit (events.js:198:15)
    at Gulp.Orchestrator._emitTaskDone (/home/aaron/github/wd/node_modules/orchestrator/index.js:264:8)
    at /home/aaron/github/wd/node_modules/orchestrator/index.js:275:23
    at finish (/home/aaron/github/wd/node_modules/orchestrator/lib/runTask.js:21:8)
    at DestroyableTransform.<anonymous> (/home/aaron/github/wd/node_modules/orchestrator/lib/runTask.js:52:4)
    at DestroyableTransform.f (/home/aaron/github/wd/node_modules/orchestrator/node_modules/once/once.js:17:25)
    at DestroyableTransform.emit (events.js:198:15)
    at DestroyableTransform.flush (/home/aaron/github/wd/node_modules/gulp-jshint/src/reporters/fail.js:42:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wd@1.11.1 all_tests: `gulp test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wd@1.11.1 all_tests script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/aaron/.npm/_logs/2019-03-31T16_38_54_786Z-debug.log
aaron@DESKTOP-K1UG2GP:~/github/wd$
AaronNGray commented 5 years ago

wd is now working from web-component-tester as called by html-imports

AaronNGray commented 5 years ago

When running 'npm run all_tests' getting the following error :-

  AssertionError [ERR_ASSERTION]: Task never defined: test-unit
C:\Users\aaron\GitHub\wd>npm run all_tests

> wd@1.11.2 all_tests C:\Users\aaron\GitHub\wd
> gulp test

[00:54:41] Using gulpfile ~\GitHub\wd\gulpfile.js
[00:54:41] Starting 'test'...
[00:54:41] 'test' errored after 4.57 ms
[00:54:41] AssertionError [ERR_ASSERTION]: Task never defined: test-unit
    at getFunction (C:\Users\aaron\GitHub\wd\node_modules\undertaker\lib\helpers\normalizeArgs.js:15:5)
    at map (C:\Users\aaron\GitHub\wd\node_modules\arr-map\index.js:20:14)
    at normalizeArgs (C:\Users\aaron\GitHub\wd\node_modules\undertaker\lib\helpers\normalizeArgs.js:22:10)
    at Gulp.series (C:\Users\aaron\GitHub\wd\node_modules\undertaker\lib\series.js:13:14)
    at C:\Users\aaron\GitHub\wd\gulpfile.js:89:21
    at Function.promise (C:\Users\aaron\GitHub\wd\node_modules\q\q.js:702:9)
    at runSequence (C:\Users\aaron\GitHub\wd\gulpfile.js:84:12)
    at C:\Users\aaron\GitHub\wd\gulpfile.js:191:22
    at taskWrapper (C:\Users\aaron\GitHub\wd\node_modules\undertaker\lib\set-task.js:13:15)
    at bound (domain.js:415:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wd@1.11.2 all_tests: `gulp test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wd@1.11.2 all_tests script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\aaron\AppData\Roaming\npm-cache\_logs\2019-07-27T23_54_41_390Z-debug.log
admc commented 4 years ago

@imurchie any ideas? you were recently working on the test rig right?

imurchie commented 4 years ago

Yup. :( Missed a naming change.