2015-07-27 19:53:24 +02:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
return {
|
2015-08-19 00:36:00 +02:00
|
|
|
options: {
|
|
|
|
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
|
|
basePath: '',
|
|
|
|
|
|
|
|
captureTimeout: 30000,
|
|
|
|
browserNoActivityTimeout: 120000,
|
|
|
|
frameworks: ['mocha'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: grunt.option('debug') || grunt.option('verbose') ? 'DEBUG' : 'INFO',
|
|
|
|
autoWatch: false,
|
|
|
|
browsers: ['<%= karmaBrowser %>'],
|
|
|
|
|
|
|
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
|
|
reporters: ['progress', 'growl'],
|
|
|
|
|
|
|
|
// list of files / patterns to load in the browser
|
|
|
|
files: [
|
|
|
|
'http://localhost:5610/bundles/commons.bundle.js',
|
|
|
|
'http://localhost:5610/bundles/tests.bundle.js',
|
|
|
|
'http://localhost:5610/bundles/commons.style.css',
|
|
|
|
'http://localhost:5610/bundles/tests.style.css'
|
|
|
|
],
|
|
|
|
|
|
|
|
proxies: {
|
|
|
|
'/tests/': 'http://localhost:5610/tests/',
|
|
|
|
'/bundles/': 'http://localhost:5610/bundles/'
|
|
|
|
},
|
|
|
|
|
|
|
|
client: {
|
|
|
|
mocha: {
|
|
|
|
reporter: 'html', // change Karma's debug.html to the mocha web reporter
|
|
|
|
timeout: 10000,
|
|
|
|
slow: 5000
|
|
|
|
}
|
|
|
|
}
|
2015-08-18 22:32:44 +02:00
|
|
|
},
|
2015-08-19 00:36:00 +02:00
|
|
|
|
|
|
|
dev: { singleRun: false },
|
|
|
|
unit: { singleRun: true },
|
2015-08-25 02:10:21 +02:00
|
|
|
coverage: {
|
|
|
|
singleRun: true,
|
|
|
|
reporters: ['coverage'],
|
|
|
|
coverageReporter: {
|
|
|
|
reporters: [
|
|
|
|
{ type: 'html', dir: 'coverage' },
|
|
|
|
{ type: 'text-summary' },
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2015-07-27 19:53:24 +02:00
|
|
|
};
|
|
|
|
};
|