karma-runner / karma-runner/karma-coverage

Colors still output to text-summary file with colors:false set

Open
#35 4 comments 0 reactions 0 assignees View on GitHub
needs: feedback-from-author
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

I'm still seeing some escape characters when trying to output text-summary to a file with colors turned off...

```
module.exports = function(config) {
config.set({
basePath: '',
autoWatch: true,
frameworks: ['qunit'],
files: [

],

// list of files to exclude
exclude: [
],

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['progress', 'coverage'],
preprocessors: {
'source/**/*.js': ['coverage']
},

plugins: [
// these plugins will be require() by Karma
'karma-coverage',
'karma-qunit',
'karma-phantomjs-launcher'
],

colors: false,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: ['PhantomJS'],

singleRun: false,

coverageReporter: {
type : 'text',
dir : 'coverage/',
file: 'coverage.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.