angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Inaccurate Coverage/Highlighting in Code Coverage for Libraries in Projects

Open frankrue opened this issue 8 years ago • 3 comments

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

  1. Create a basic Angular project
  2. Enter the project folder
  3. Generate a library
  4. Test that library & create code coverage
  5. Open the coverage HTML
  6. 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

coverage-oddity

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.

frankrue avatar Aug 09 '18 14:08 frankrue

This seems to be the same issues cited here: #11672.

frankrue avatar Aug 09 '18 15:08 frankrue

Whatever the problem is, Issue #11672 will likely deal with it, so I'll close this Issue.

frankrue avatar Aug 09 '18 15:08 frankrue

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.