防止量角器编译角度代码

时间:2018-11-11 02:22:23

标签: angular protractor angular-e2e

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

我尝试过ng e2e -s false,我是在网上阅读的。但是它给出了错误ng e2e -s false

请帮助,如何更快地加载e2e

1 个答案:

答案 0 :(得分:2)

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

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