Inaccurate Coverage/Highlighting in Code Coverage for Libraries in Projects
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [x] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Node v9.5.0 NPM v5.6.0 ng v6.1.0 macOS High Sierra
Repro steps
- Create a basic Angular project
- Enter the project folder
- Generate a library
- Test that library & create code coverage
- Open the coverage HTML
- Navigate to src/lib/ and then any file (in my screen shot, I chose
test-lib.component.ts)
ng new test-lib-app
cd test-lib-app
ng generate library test-lib
ng test test-lib --watch=false --code-coverage
open coverage/index.html
The log given by the failure
Desired functionality
Code coverage should be 100% and the highlights should not include portions of the strings in the import call, icons around the code, etc.
Mention any other details that might be useful
No other details.
This seems to be the same issues cited here: #11672.
Whatever the problem is, Issue #11672 will likely deal with it, so I'll close this Issue.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.