module.exports = function (config) { 'use strict';
config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // base path, that will be used to resolve files and exclude basePath: '', // testing framework to use (jasmine/mocha/qunit/...) frameworks: ['jasmine', 'browserify'], // list of files / patterns to load in the browser files: [ //'app/bower_components/es5-shim/es5-shim.js', 'node_modules/jasmine-as-promised/src/jasmine-as-promised.js', 'build/js/jquery-2.1.4.min.js', 'build/js/main.js', 'build/js/common/test-helper.js', 'node_modules/angular-mocks/angular-mocks.js', 'frontend_tests/unit/**/*.js' ], // list of files / patterns to exclude exclude: [], // web server port port: 9876, // Start these browsers, currently available: // - Chrome // - ChromeCanary // - Firefox // - Opera // - Safari (only Mac) // - PhantomJS // - IE (only Windows) browsers: [ 'PhantomJS' // 'Chrome' ], // Code coverage report reporters: ['progress'], preprocessors: { 'frontend_tests/unit/**/*.js': ['browserify'] }, browserify: { debug: true }, // Which plugins to enable plugins: [ 'karma-phantomjs-launcher', // 'karma-chrome-launcher', 'karma-jasmine', 'karma-browserify-preprocessor' ], // Continuous Integration mode // if true, it capture browsers, run tests and exit singleRun: false, colors: true, // level of logging // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG logLevel: config.LOG_INFO, // Uncomment the following lines if you are using grunt's server to run the tests // proxies: { // '/': 'http://localhost:9000/' // }, // URL root prevent conflicts with the site root // urlRoot: '_karma_' // browserNoActivityTimeout: 100000 }); };