问题
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:
- angular cli exclude files/directory for ng test--code-coverage and
- 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