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