gaetan
02/07/2018, 11:31 PMmodule.exports = function(config) {
config.set({
frameworks: ['qunit', 'browserify'],
reporters: ['mocha'],
files: [
'build/classes/kotlin/main/*.js',
'build/classes/kotlin/test/*.js',
'build/node_modules/*.js',
{pattern: 'build/classes/kotlin/test/*.json', watched: true, served: true, included: false}
],
colors: true,
logLevel: config.LOG_INFO,
browsers: [
// 'ChromeHeadless',
// 'PhantomJS',
'Chrome'
],
// singleRun: true,
singleRun: false,
autoWatch: false,
captureTimeout: 5000,
// singleRun: false, // Karma captures browsers, runs the tests and exits
preprocessors: {
'**/*.js': ['browserify']
}
})
};
Using Chrome instead of PhantomJS or ChromeHeadless with singleRun: false
will launch chrome with the debug interface. You can then launch the test and use the chrome dev tools.albertgao
02/07/2018, 11:42 PM