github.com/sym3tri/etcd@v0.2.1-0.20140422215517-a563d82f95d6/mod/dashboard/karma.conf.js (about) 1 var path = require('path'), 2 APP_CONFIG = require('config'); 3 4 module.exports = function(config) { 5 6 function bowerPath(dir) { 7 return path.join(APP_CONFIG.bowerPath, dir); 8 } 9 10 function appPath(dir) { 11 return path.join(APP_CONFIG.appPath, dir); 12 } 13 14 function testPath(dir) { 15 return path.join(APP_CONFIG.testPath, dir); 16 } 17 18 config.set({ 19 20 // Base path, that will be used to resolve files and exclude. 21 basePath: __dirname, 22 23 // Test framework to use. 24 frameworks: ['jasmine'], 25 26 // list of files / patterns to load in the browser 27 files: [ 28 // TODO: programatically generate list of bower components 29 bowerPath('/angular/angular.js'), 30 bowerPath('/angular-route/angular-route.js'), 31 bowerPath('/angular-resource/angular-resource.js'), 32 bowerPath('/angular-animate/angular-animate.js'), 33 bowerPath('/angular-mocks/angular-mocks.js'), 34 bowerPath('/angular-bootstrap/ui-bootstrap-tpls.js'), 35 bowerPath('/underscore/underscore.js'), 36 bowerPath('/underscore.string/lib/underscore.string.js'), 37 bowerPath('/jquery/dist/jquery.js'), 38 bowerPath('/d3/d3.js'), 39 40 // Tests & test helper files. 41 testPath('/util/**/*.js'), 42 testPath('/mock/**/*.js'), 43 testPath('/**/*.spec.js'), 44 45 // Actual client-side code. 46 appPath('/*.js'), 47 appPath('/compiled/*.js'), 48 appPath('/{directive,module,service,filter,coreos}/**/*.js') 49 ], 50 51 reporters: ['progress'], 52 53 // web server port 54 port: 8100, 55 56 // cli runner port 57 runnerPort: 9100, 58 59 colors: true, 60 61 // LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG 62 logLevel: config.LOG_INFO, 63 64 autoWatch: false, 65 66 browsers: ['Chrome'], 67 68 // If browser does not capture in given timeout [ms], kill it 69 captureTimeout: 5000, 70 71 // Continuous Integration mode. 72 // If true, it capture browsers, run tests and exit. 73 singleRun: true 74 75 }); 76 77 };