karma-runner / karma-runner/karma-coverage

<--- JS stacktrace ---> Cannot get stack trace in GC. FATAL ERROR: Scavenger: semi-space copy Allocation failed - process out of memory

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

Description

when use karma-coverage to test vuex-store, this phenomenon happens.
the file karma.config.js as follow.
baseConfig.preprocessors = {
// '../test/components/*.js': ['webpack', 'sourcemap', 'coverage'],
// '../test/webview/*.spec.js': ['webpack', 'sourcemap', 'coverage'],
'../test/vuex/*.spec.js': ['webpack', 'sourcemap', 'coverage'],
};
// baseConfig.reporters = ['spec', 'coverage'];
baseConfig.reporters = ['coverage'];
baseConfig.coverageReporter = {
dir: '../test/coverage',
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' },
{ type: 'cobertura', subdir: '.', file: 'cobertura.txt' },
{ type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' },
{ type: 'teamcity', subdir: '.', file: 'teamcity.txt' },
{ type: 'text', subdir: '.', file: 'text.txt' },
{ type: 'text-summary', subdir: '.', file: 'text-summary.txt' },
]
};

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.