Description
Bug Report or Feature Request (mark with an x
)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [X] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
NodeJS: v8.10.0
NPM: 3.5.2
Angular CLI: 6.0.8
(Angular 6.0.9)
Docker: 18.06.0-ce
, build 0ffa825
Host: Ubuntu 18.04 LTS
Container: wraptor/npm-chrome
Repro steps
Create a couple of default tests using services, components etc.
The log given by the failure
Desktop build (Windows linux subsystem ubuntu bash):
wraptor@PC-Wraptor:/mnt/d/Developement/Git/Angular/Wheezie/Wheezie-Frontend$ ./node_modules/@angular/cli/bin/ng test --watch false --progress false
(node:573) DeprecationWarning: Tapable.plugin is deprecated. Use new API on.hooks
instead
24 07 2018 22:27:56.250:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
24 07 2018 22:27:56.254:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
24 07 2018 22:27:56.264:INFO [launcher]: Starting browser Chrome
24 07 2018 22:28:04.046:INFO [HeadlessChrome 67.0.3396 (Linux 0.0.0)]: Connected on socket OoPNs1huY2JVMx_tAAAA with id 91895679
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 12 of 12 SUCCESS (0.712 secs / 0.724 secs)
Docker test:
$ ./node_modules/@angular/cli/bin/ng test --watch false --progress false
(node:11) DeprecationWarning: Tapable.plugin is deprecated. Use new API on.hooks
instead
24 07 2018 16:54:08.140:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
24 07 2018 16:54:08.143:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
24 07 2018 16:54:08.151:INFO [launcher]: Starting browser Chrome
24 07 2018 16:54:26.318:INFO [HeadlessChrome 67.0.3396 (Linux 0.0.0)]: Connected on socket cWNPXY1q_5RIJLsnAAAA with id 23845975
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 0 of 12 SUCCESS (0 secs / 0 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 1 of 12 SUCCESS (0 secs / 0.099 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 2 of 12 SUCCESS (0 secs / 0.324 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 3 of 12 SUCCESS (0 secs / 0.586 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 4 of 12 SUCCESS (0 secs / 0.696 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 5 of 12 SUCCESS (0 secs / 1.039 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0) HttpService should be created FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0) HttpService should be created FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 6 of 12 (1 FAILED) (0 secs / 1.139 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0) HttpService should be created FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 7 of 12 (1 FAILED) (0 secs / 1.182 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 8 of 12 (1 FAILED) (0 secs / 1.353 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 9 of 12 (1 FAILED) (0 secs / 1.44 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 10 of 12 (1 FAILED) (0 secs / 1.456 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 11 of 12 (1 FAILED) (0 secs / 1.488 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 12 of 12 (1 FAILED) (0 secs / 1.509 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 12 of 12 (1 FAILED) (1.741 secs / 1.509 secs)
Commenting out the HttpService Service component's testing functions results in the next in chain to fail:
$ ./node_modules/@angular/cli/bin/ng test --watch false --progress false
(node:12) DeprecationWarning: Tapable.plugin is deprecated. Use new API on.hooks
instead
24 07 2018 20:16:51.515:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
24 07 2018 20:16:51.518:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
24 07 2018 20:16:51.528:INFO [launcher]: Starting browser Chrome
24 07 2018 20:17:10.713:INFO [HeadlessChrome 67.0.3396 (Linux 0.0.0)]: Connected on socket FATncIw0GAT1Oz2nAAAA with id 31134648
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 0 of 11 SUCCESS (0 secs / 0 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 1 of 11 SUCCESS (0 secs / 0.102 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 2 of 11 SUCCESS (0 secs / 0.38 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 3 of 11 SUCCESS (0 secs / 0.613 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 4 of 11 SUCCESS (0 secs / 0.743 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 5 of 11 SUCCESS (0 secs / 1.026 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0) LoadbarComponent should create FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0) LoadbarComponent should create FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 6 of 11 (1 FAILED) (0 secs / 1.09 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0) LoadbarComponent should create FAILED
[object ErrorEvent] thrown
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 7 of 11 (1 FAILED) (0 secs / 1.205 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 8 of 11 (1 FAILED) (0 secs / 1.286 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 9 of 11 (1 FAILED) (0 secs / 1.303 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 10 of 11 (1 FAILED) (0 secs / 1.327 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 11 of 11 (1 FAILED) (0 secs / 1.353 secs)
HeadlessChrome 67.0.3396 (Linux 0.0.0): Executed 11 of 11 (1 FAILED) (1.568 secs / 1.353 secs)
Desired functionality
It to work witout any issues in docker