add threshold reporter and fix travis

This commit is contained in:
Keegan
2016-01-27 00:38:32 -08:00
parent 503605952f
commit f91ab1993a
2 changed files with 19 additions and 2 deletions
+16 -1
View File
@@ -45,7 +45,7 @@ module.exports = function(config) {
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'mocha', 'coverage'],
reporters: ['progress', 'mocha', 'coverage', 'threshold'],
// optionally, configure the reporter
coverageReporter: {
@@ -56,6 +56,13 @@ module.exports = function(config) {
]
},
thresholdReporter: {
statements: 100,
branches: 100,
functions: 100,
lines: 100
},
// web server port
port: 9876,
@@ -74,6 +81,14 @@ module.exports = function(config) {
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
// set via the command line
customLaunchers: {
chromeTravisCI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,