mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-03 23:57:43 -04:00
add threshold reporter and fix travis
This commit is contained in:
+16
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user