2

量角器测试似乎很慢,这是因为 Angular 每次都必须编译代码。

我试过ng e2e -s false了,我在网上看到的。但它给出了错误ng e2e -s false

请帮忙,我怎样才能e2e更快地加载。

4

1 回答 1

3

我遇到了同样的问题,请尝试以下操作

ng e2e --webdriver-update=false --devServerTarget=''

我目前的 ng --version 产量

Angular CLI: 7.1.1
Node: 10.14.1
OS: darwin x64
Angular: 7.1.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, http, language-service, material, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.10.4
@angular-devkit/build-angular     0.10.4
@angular-devkit/build-optimizer   0.10.4
@angular-devkit/build-webpack     0.10.4
@angular-devkit/core              7.0.4
@angular-devkit/schematics        7.1.1
@angular/fire                     5.1.0
@ngtools/webpack                  7.0.4
@schematics/angular               7.1.1
@schematics/update                0.11.1
rxjs                              6.3.3
typescript                        3.1.3
webpack                           4.19.1

另请参阅以下线程

https://github.com/angular/angular-cli/issues/10741

于 2018-12-05T21:54:18.407 回答