karma-runner / karma-runner/karma-coverage

Support baseline to display zero coverage for "untouched" files

Open
#11 9 comments 1 reaction 0 assignees View on GitHub
PR please type: feature
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Currently, files that are never executed are not included in the report (even if they are instrumented).

This can be implemented using BaselineCollector https://github.com/gotwarlost/istanbul/commit/092f336f05fb2aff79684a5eb55e0982dd3ac808

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked Istanbul BaselineCollector implementation and tracing how karma-coverage builds its report. Confirm how instrumented files that were never executed are currently omitted. Done means those files appear in the coverage report with zero coverage, with suitable verification added where the repository's existing report behavior is tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.