angular / angular/angular-cli

Option for Istanbul coverage to include all source files (as opposed to only files loaded during test)

未关闭
#1,735 26 条评论 25 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/build-angular devkit/build-angular:karma feature feature: under consideration
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

> ## Please provide us with the following information:
1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Any
2. Versions. Please run `ng --version`. If there's nothing outputted, please run
in a Terminal: `node --version` and paste the result here:

angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.2
os: linux x64
1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

Create an application. Test some, but not all of the source files. Generated coverage will not include files that were not loaded by the tests.
1. The log given by the failure. Normally this include a stack trace and some
more information.

N/A
1. Mention any other details that might be useful.

> ---
>
> Thanks! We'll be in touch soon.

Similar to gotwarlost/istanbul#275 and karma-runner/karma-coverage#125

贡献指南

打开贡献指南

调研方向

通过仅测试部分源文件,使用 angular-cli 1.0.0-beta.11-webpack.2 重现该行为,然后跟踪 CLI 如何生成 coverage。阅读链接的 Istanbul 和 karma-coverage issues,了解该选项预期的行为。当 coverage 可以选择性地包含测试未加载的源文件时,即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
cli, testing-qa
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。