karma-sharding
Allows Karma tests to be distributed across multiple sequentially loaded browsers
Installation
The easiest way is to install karma-sharding
as a devDependency
,
by running
npm install karma karma-sharding --save-dev
Examples
Basic
module.exports = function(config) {
config.set({
files: [
'src/**/*.js',
'test/**/*.js'
],
reporters: ['progress', 'sharding'],
frameworks: ['sharding'],
preprocessors: {
'src/**/*.js': ['coverage']
},
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
browsers: ['ChromeHeadless', 'ChromeHeadless']
});
};
For more information on Karma see the homepage.