angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Karma doesn't run test with autoWatch false

Open Zwartpet opened this issue 5 years ago β€’ 5 comments

🐞 bug report

Affected Package

The issue is caused by package @angular/cli?

Is this a regression?

No

Description

Browser application bundle generation is completed, after that the tests don't start and the cli is just hanging

πŸ”¬ Minimal Reproduction

ng new repro-app and change autoWatch to false

πŸ”₯ Exception or Error



12 01 2021 10:15:49.272:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
12 01 2021 10:15:49.275:INFO [launcher]: Starting browser Chrome
βœ” Browser application bundle generation complete.
12 01 2021 10:15:53.313:INFO [Chrome 88.0.4298.0 (Mac OS 11.0.0)]: Connected on socket MyaTN-qwRm544hpRAAAA with id 51404268

And then its stuck

🌍 Your Environment

Angular Version:


Angular CLI: 11.0.6
Node: 14.15.0
OS: darwin x64

Angular: 11.0.7
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.6
@angular-devkit/build-angular   0.1100.6
@angular-devkit/core            11.0.6
@angular-devkit/schematics      11.0.6
@angular/cli                    11.0.6
@schematics/angular             11.0.6
@schematics/update              0.1100.6
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?

Zwartpet avatar Jan 12 '21 09:01 Zwartpet

Addition: singleRun: true isn't working when watch: true and auto-watch: false (resulting in stuck test jobs in CI/CD pipeline)

Zwartpet avatar Jan 12 '21 09:01 Zwartpet

I believe this should be fixed by https://github.com/angular/angular-cli/pull/19736 which will be part of the next release scheduled for tomorrow.

Does this work if you use @angular-devkit/build-angular version 0.1100.5?

alan-agius4 avatar Jan 12 '21 11:01 alan-agius4

Yes works with 0.1100.5, thanks!

Zwartpet avatar Jan 12 '21 11:01 Zwartpet

In that case this is already solved via #19736 which will be available in 0.1100.7.

alan-agius4 avatar Jan 12 '21 11:01 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.