karma-runner / karma-runner/karma-coverage
Text reporter output is broken
- 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 |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
[32;1mcomponents/account/ [0m |[32;1m 100[0m |[33;1m 50[0m |[32;1m 100[0m |[32;1m 100[0m |[31;1m [0m |
[32;1mobjectiveList.js [0m |[32;1m 100[0m |[33;1m 50[0m |[32;1m 100[0m |[32;1m 100[0m |[31;1m [0m |
[33;1mcomponents/activities/eventForm/ [0m |[33;1m 70.09[0m |[33;1m 57.14[0m |[33;1m 65[0m |[33;1m 70.09[0m |[31;1m [0m |
[33;1meventForm.js [0m |[33;1m 70.09[0m |[33;1m 57.14[0m |[33;1m 65[0m |[33;1m 70.09[0m |[31;1m... 240,241,244[0m |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
[33;1mAll files [0m |[33;1m 62.19[0m |[33;1m 50.5[0m |[33;1m 54.32[0m |[33;1m 62.2[0m |[31;1m [0m |
---------------------------------------------------------|----------|----------|----------|----------|----------------|
`
Not sure how it will look in github but there are weird `[32;1m`, `[0m`, `[33;1m`, `[31;1m`, `[1m` characters that break the design of the outputted file.
Contributor 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