karma-runner / karma-runner/karma-coverage

Infinite loop when adding reporters type `html`

Open
#352 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

## Issue:
I wanted to get a report on both the console and in an output folder. However, when I add `type: 'html'`, the tests goes into infinite loop.

Karma.config.js:
```
files: [
{pattern: 'karma/karma.entry.js', watched: false},
],
reporters: ['progress', 'coverage', 'remap-coverage'],
remapCoverageReporter: {
'text-summary': null,
},
coverageReporter: {
dir: './coverage',
reporters: [
{type: 'text'},
{type: 'html', subdir: 'html'},
],
},
plugins: [
istanbul-instrumenter-loader',
'karma-chrome-launcher',
'karma-coverage',
'karma-jasmine',
'karma-sourcemap-loader',
'karma-webpack',
'karma-remap-coverage',
]
...
```

Any ideas?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.