karma-runner / karma-runner/karma-coverage

Text reporter output is broken

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

Description

This is an example of the output when selecting the text reporter:

`---------------------------------------------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
components/account/  | 100 | 50 | 100 | 100 |  |
objectiveList.js  | 100 | 50 | 100 | 100 |  |
components/activities/eventForm/  | 70.09 | 57.14 | 65 | 70.09 |  |
eventForm.js  | 70.09 | 57.14 | 65 | 70.09 |... 240,241,244 |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
All files  | 62.19 | 50.5 | 54.32 | 62.2 |  |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
`

Not sure how it will look in github but there are weird ``, `[0m`, `[33;1m`, `[31;1m`, `[1m` characters that break the design of the outputted file.

Contributor guide

Open the contributing guide

Research direction

Reproduce the example by selecting the text reporter and inspect the generated output for the displayed ANSI escape sequences. The issue is done when the text report preserves its table formatting without emitting those control characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.