'use strict'; var istanbul = require('browserify-istanbul'); var isparta = require('isparta'); module.exports = function(config) { config.set({ basePath: '../', frameworks: ['jasmine', 'browserify'], preprocessors: { 'app/js/**/*.js': ['browserify', 'coverage'] }, browsers: ['Firefox'], reporters: ['progress', 'subunit'], autoWatch: true, singleRun: true, browserify: { debug: true, transform: [ 'bulkify', istanbul({ instrumenter: isparta, ignore: ['**/node_modules/**', '**/test/**'] }) ] }, subunitReporter: { slug: true, tags: ['worker-0'] }, proxies: { '/': 'http://localhost:9876/' }, urlRoot: '/__karma__/', files: [ // app-specific code 'app/js/main.js', // 3rd-party resources 'node_modules/angular-mocks/angular-mocks.js', // test files 'test/unit/**/*.js' ] }); };