UNPKG

875 BJavaScriptView Raw
1var path = require('path');
2
3var testFiles = [
4 'bower_components/angular/angular.js',
5 'bower_components/angular-mocks/angular-mocks.js',
6 'src/**/*.js',
7 'test/unit/**/*.js'
8];
9
10module.exports = function(config){
11 var options = {
12 basePath : path.dirname(__dirname),
13 files : testFiles,
14 autoWatch : true,
15 frameworks: ['jasmine'],
16 browsers : ['Firefox', 'Chrome'],
17 customLaunchers: {
18 Chrome_travis_ci: {
19 base: 'Chrome',
20 flags: ['--no-sandbox']
21 }
22 },
23 plugins : [
24 'karma-chrome-launcher',
25 'karma-firefox-launcher',
26 'karma-jasmine'
27 ],
28 junitReporter : {
29 outputFile: 'test_out/unit.xml',
30 suite: 'unit'
31 }
32 };
33 if(process.env.TRAVIS){
34 options.browsers = ['Chrome_travis_ci'];
35 }
36 config.set(options);
37};
38
39module.exports.testFiles = testFiles;