module.exports = {
	options: {
		configFile: 'karma-unit.conf.js'
	},

	// Sinle run
	unit: {
		singleRun: true,
		preprocessors: {
			'src/**/*.js': ['coverage']
		},
		reporters: ['dots', 'coverage'],
		coverageReporter: {
			type : 'text-summary'
		},
	},

	// Create coverage report
	coverage: {
		singleRun: true,
		preprocessors: {
			'src/**/*.js': ['coverage']
		},
		reporters: ['dots', 'coverage'],
		coverageReporter: {
			type : 'html',
			dir: 'coverage/'
		},
	},

	// TDD
	tdd: {}
};

module.exports = {
	options: {
		configFile: 'karma-unit.conf.js'
	},

	// Sinle run
	unit: {
		singleRun: true,
		preprocessors: {
			'src/**/*.js': ['coverage']
		},
		reporters: ['dots', 'coverage'],
		coverageReporter: {
			type : 'text-summary'
		},
	},

	// Create coverage report
	coverage: {
		singleRun: true,
		preprocessors: {
			'<%= dir.src %>/**/*.js': ['coverage']
		},
		reporters: ['dots', 'coverage'],
		coverageReporter: {
			type : 'html',
			dir: '<%= dir.coverage %>/'
		},
	},

	// TDD
	tdd: {}
};

Use dir set bei grunt.config.
refactor(grunt): Use dir set bei grunt.config.
