简体   繁体   English

具有代码覆盖率的Angular E2E测试

[英]Angular E2E Test with Code Coverage

I am using Angular v4 with angular-cli to build. 我正在使用带有angular-cli的Angular v4进行构建。 We are just starting to look at e2e testing. 我们才刚刚开始研究e2e测试。 The CLI recommends protractor. CLI建议量角器。 Is there anyway to get code coverage for protractor e2e test? 无论如何,要获得量角器e2e测试的代码覆盖率吗? Only things I have found so far is to use grunt. 到目前为止,我发现的唯一东西就是使用grunt。 Really would like to stick with angular-cli. 确实想坚持使用angular-cli。

Currently, there is no way to run an E2E test with coverage report using angular CLI. 当前,无法使用角度CLI通过覆盖率报告运行E2E测试。

Feature request https://github.com/angular/angular-cli/issues/6286 has been already exist. 功能请求https://github.com/angular/angular-cli/issues/6286已经存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM