lemur/gulp/karma.conf.js

38 lines
805 B
JavaScript
Raw Permalink Normal View History

2015-07-21 01:13:42 +02:00
// Contents of: config/karma.conf.js
'use strict';
2015-07-21 01:13:42 +02:00
module.exports = function (config) {
2021-02-02 00:46:22 +01:00
config.set({
basePath: '../',
2021-02-02 00:46:22 +01:00
// Fix for "JASMINE is not supported anymore" warning
frameworks: ['jasmine'],
2015-07-21 01:13:42 +02:00
2021-02-02 00:46:22 +01: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-21 01:13:42 +02:00
2021-02-02 00:46:22 +01:00
autoWatch: true,
2015-07-21 01:13:42 +02:00
2021-02-02 00:46:22 +01: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-21 01:13:42 +02:00
2021-02-02 00:46:22 +01:00
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit'
//...
},
2015-07-21 01:13:42 +02:00
2021-02-02 00:46:22 +01:00
failOnEmptyTestSuite: false,
});
2021-02-02 00:51:55 +01:00
};