How to exclude spec files while getting code coverage [Angular]

强颜欢笑 提交于 2020-04-30 06:25:43

问题


I'm trying to get the code coverage of my angular project. I'm not very well versed with the tools. I decided to use "istanbul-instrumenter-loader": "^3.0.1". I tried taking help from this question:

  1. angular cli exclude files/directory for ng test--code-coverage and
  2. Regex that doesn't match spec.ts and spec.tsx but should match any other .ts and .tsx

And many other solutions given on the same thread. My problem is that I want to exclude spec files which I wrote for unit testing. Here is the screenshot of what I'm getting: screenshot. Please correct my mistake and feel free to ask for missing information.

来源:https://stackoverflow.com/questions/61474540/how-to-exclude-spec-files-while-getting-code-coverage-angular

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!