var baseConfig = require('./karma.conf.js');

module.exports = function (config) {
    // Load base config
    baseConfig(config);

    // Override base config
    config.set({
        singleRun: true,
        autoWatch: false,
        reporters: ['progress', 'junit','coverage', 'coveralls'],
        browsers: ['PhantomJS'],
        plugins: ['karma-jasmine', 'karma-phantomjs-launcher', 'karma-junit-reporter', 'karma-coverage', 'karma-coveralls'],
        junitReporter: {
            outputFile: "target/surefire-reports/js-test-results.xml",
            suite: "jasmine-tests"
        }
    });
};
var baseConfig = require('./karma.conf.js');

module.exports = function (config) {
    // Load base config
    baseConfig(config);

    // Override base config
    config.set({
        singleRun: true,
        autoWatch: false,
        reporters: ['progress', 'junit','coverage', 'coveralls'],
        browsers: ['PhantomJS'],
        plugins: ['karma-jasmine', 'karma-phantomjs-launcher', 'karma-junit-reporter', 'karma-coverage', 'karma-coveralls'],
        coverageReporter: {
            type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
            dir: 'coverage/'
        }
    });
};
Fix coveralls reporting