karma-runner / karma-runner/karma-coverage

Angular 2 Typescript SystemJS Coverage Scans Only Loaded Files

Open
#266 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Project is angular 2 and it is using a systemjs test shim loader to load the files for the test.
I can't include the app files in the karma.conf.js file because it will break the systemjs loader.

When karma coverage scans, it is only using those files that are loaded by the system js loader, and it is not scanning the entire app directory.

Is there a work around to this issue?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Angular 2 setup with the SystemJS test shim loader and the karma.conf.js configuration described in the issue. Trace why coverage scans only files loaded by SystemJS, then verify that the entire app directory is included without breaking the loader.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript, typescript
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.