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

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

Closed
AaronNGray opened this issue Mar 31, 2019 · 4 comments · Fixed by #600
Closed

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

AaronNGray opened this issue Mar 31, 2019 · 4 comments · Fixed by #600

Comments

@AaronNGray
Copy link
Contributor

AaronNGray commented Mar 31, 2019

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 AaronNGray changed the title npm run all_tests is failing on Windows. 'npm run all_tests` is failing on Windows. Mar 31, 2019
@AaronNGray
Copy link
Contributor Author

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

@AaronNGray
Copy link
Contributor Author

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
Copy link
Owner

admc commented Aug 6, 2019

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

@imurchie
Copy link
Collaborator

imurchie commented Aug 7, 2019

Yup. :( Missed a naming change.

@admc admc closed this as completed in #600 Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants