ng test not obeying single run flag
Versions
Angular CLI: 6.0.0
Node: 10.0.0
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@angular/cdk 6.0.1
@angular/material 6.0.1
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- Upgrade Angular CLI to V6 (global/local)
- Upgrade Angular to V6
- Upgrade other dependencies
- Ensure karma.conf.js has
singleRun: falsein it - Run
ng tOR runng t --single-run=false
Observed behavior
If ng t is run, tests will run successfully but browser window will close on finish (despite karma.conf.js having singleRun: false inside it)
If ng t --single-run=false is run, it errors: Unknown option: '--singleRun' Note that running ng t --no-single-run creates the same error.
Desired behavior
I would like the browser window to remain open, as it always did, pre-upgrade
Use the watch, the report is not clear and occupy large space. If I want to find the error case, I must scroll a long time. how to make the report in the console like the ng test clearly, but run only once.
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.