/*
 * @overview Configuration for karma
 * @see {@link http://karma-runner.github.io/0.10/index.html | karma}
 */
module.exports = function (config) {
    process.env.PHANTOMJS_BIN = '/usr/local/bin/phantomjs';
    var ports = require('../../ports');
    config.set({
        basePath: "../..",
        frameworks: ['jasmine'],
        files: [
            'clientside/src/js_libraries/libraries.js',
            'clientside/src/coffee/**/*.coffee',
            'test/browser_unit_tests/**/*-test.js'
        ],
        exclude: [
            '**/*.config.js'
        ],
        port: ports['browser_unit_test'],
        logLevel: config.LOG_INFO,
        browsers: ['Chrome'],
        reporters: ['progress'],
        plugins: [
            'karma-coffee-preprocessor',
            'karma-chrome-launcher',
            'karma-jasmine'
        ],
        singleRun: true,
        preprocessors: {
            '**/*.coffee': ['coffee']
        }
    });
};