'use strict'
module.exports = function(config) {
	config.set({
		basePath: '',
		frameworks: ['jasmine-jquery', 'jasmine'],
		files: [
			'src/audiochart.js',
			'spec/*.html',
			'spec/*.js'
		],
		preprocessors: {
			'src/audiochart.js': ['coverage']
		},
		reporters: ['spec', 'coverage'],
		colors: true,
		logLevel: config.LOG_INFO,
		autoWatch: true,
		browsers: ['ChromeHeadless', 'Firefox'],
		singleRun: true,
		concurrency: Infinity,
		coverageReporter: {
			reporters: [
				{type: 'html', dir: 'coverage/', subdir: '.'},
				{type: 'text'},
			]
		}
	})
}

@@ -558,11 +558,107 @@
 %0A%09%09%7D%0A%09%7D)
+%0A%0A%09if (config.grep) %7B%0A%09%09config.set(%7B%0A%09%09%09client: %7B%0A%09%09%09%09args: %5B'--grep', config.grep%5D%0A%09%09%09%7D%0A%09%09%7D)%0A%09%7D
 %0A%7D%0A

Allow selective karma testing