01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburgmodule.exports = function (config) {
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg config.set({
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // base path that will be used to resolve all patterns (eg. files, exclude)
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg basePath: ".",
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // frameworks to use
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg frameworks: ["mocha", "requirejs"],
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // list of files / patterns to load in the browser
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg files: [
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/test-classes/test-main.js" },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/test-classes/org/**/*.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/compiled/org/**/*.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/compiled/config/**/*.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/dependencies/libs/**/*.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "target/test-classes/**/*.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "node_modules/chai/chai.js", included: false },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg { pattern: "node_modules/sinon-chai/lib/sinon-chai.js", included: false }
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg ],
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // list of files to exclude
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg exclude: [],
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // preprocess matching files before serving them to the browser
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg preprocessors: {},
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // test results reporter to use
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // possible values: "dots", "progress"
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // available reporters: https://npmjs.org/browse/keyword/karma-reporter
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler reporters: ["notify", "mocha"],
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler mochaReporter: {
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler output: "autowatch"
6da6692846ac189aa8a6b1b897fb03f6d7bf34aePhil Ostler },
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // web server port
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg port: 9876,
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // enable / disable colors in the output (reporters and logs)
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg colors: true,
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // level of logging
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // possible values: config.LOG_DISABLE, config.LOG_ERROR, config.LOG_WARN, config.LOG_INFO, config.LOG_DEBUG
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg logLevel: config.LOG_INFO,
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // enable / disable watching file and executing tests whenever any file changes
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg autoWatch: true,
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // start these browsers
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg browsers: ["PhantomJS"],
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // Continuous Integration mode
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg // if true, Karma captures browsers, runs the tests and exits
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg singleRun: false
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg });
01f87b9746ac246340e0e98d25e03193d83b071fJoe Bandenburg};