module.exports = function (config) {
	config.set({
		basePath : './',
		frameworks: ['jasmine'],
	        files: [
			'lib/**/*.js',
			'test/spec/*.js'
	        ],
	        exclude: [
			'test/karma.conf.js'
	        ],
		browsers : ['PhantomJS'],
		reporters : ['progress', 'spec', 'coverage', 'html'],
		preprocessors: {
			'lib/sqr.js': 'coverage'
		},
		coverageReporter: {
			type : 'text'//,
			//dir : 'coverage/'
		},
		htmlReporter: {
			outputFile: 'results/unit-tests.html'
		},
		singleRun: true,
		plugins : [
			'karma-spec-reporter',
			'karma-phantomjs-launcher',
			'karma-jasmine',
			'karma-coverage',
			'karma-htmlfile-reporter'
		]
	});
};

module.exports = function (config) {
	config.set({
		basePath : './',
		frameworks: ['jasmine'],
	        files: [
			'lib/**/*.js',
			'test/spec/*.js'
	        ],
	        exclude: [
			'test/karma.conf.js'
	        ],
		browsers : ['PhantomJS'],
		reporters : ['progress', 'spec', 'coverage', 'html'],
		preprocessors: {
			'**/lib/sqr.js': 'coverage'
		},
		coverageReporter: {
			type : 'text'//,
			//dir : 'coverage/'
		},
		htmlReporter: {
			outputFile: 'results/unit-tests.html'
		},
		singleRun: true,
		plugins : [
			'karma-spec-reporter',
			'karma-phantomjs-launcher',
			'karma-jasmine',
			'karma-coverage',
			'karma-htmlfile-reporter'
		]
	});
};

Update karma.conf.js