lemur/gulp/karma.conf.js

38 lines
805 B
JavaScript
Raw Normal View History

2015-07-20 16:13:42 -07:00
// Contents of: config/karma.conf.js
'use strict';
2015-07-20 16:13:42 -07:00
module.exports = function (config) {
2021-02-01 15:46:22 -08:00
config.set({
basePath: '../',
2021-02-01 15:46:22 -08:00
// Fix for "JASMINE is not supported anymore" warning
frameworks: ['jasmine'],
2015-07-20 16:13:42 -07:00
2021-02-01 15:46:22 -08:00
files: [
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
2015-07-20 16:13:42 -07:00
2021-02-01 15:46:22 -08:00
autoWatch: true,
2015-07-20 16:13:42 -07:00
2021-02-01 15:46:22 -08:00
browsers: [process.env.TRAVIS ? 'Chrome_travis_ci' : 'Chrome'],
customLaunchers: {
'Chrome_travis_ci': {
base: 'Chrome',
flags: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu',],
},
},
2015-07-20 16:13:42 -07:00
2021-02-01 15:46:22 -08:00
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit'
//...
},
2015-07-20 16:13:42 -07:00
2021-02-01 15:46:22 -08:00
failOnEmptyTestSuite: false,
});
2021-02-01 15:51:55 -08:00
};