// Karma configuration
// Generated on Sun Aug 16 2015 13:55:06 GMT+0300 (EEST)
module.exports = function(config) {
	"use strict";
	config.set({

		// base path that will be used to resolve all patterns (eg. files, exclude)
		basePath: '..',


		// frameworks to use
		// available frameworks: [url]https://npmjs.org/browse/keyword/karma-adapter[/url]
		frameworks: ['jasmine', 'requirejs'],

		plugins: [require('karma-babel-preprocessor'), require('karma-jasmine'), require('karma-requirejs'), require('karma-phantomjs-launcher'), require('karma-coverage')],
		// list of files / patterns to load in the browser
		files: [
			'test/test-main.js', {
				pattern: '*.js',
				included: false
			}, {
				pattern: 'magic/*.js',
				included: false
			}, {
				pattern: 'test/src/**/*_spec.es',
				included: false
			}, {
				pattern: 'src/**/*.js',
				included: false
			}
		],


		// list of files to exclude
		exclude: [],


		// preprocess matching files before serving them to the browser
		// available preprocessors: [url]https://npmjs.org/browse/keyword/karma-preprocessor[/url]



		// test results reporter to use
		// possible values: 'dots', 'progress'
		// available reporters: [url]https://npmjs.org/browse/keyword/karma-reporter[/url]
		reporters: ['progress', 'coverage'],


		// web server port
		port: 9876,


		// enable / disable colors in the output (reporters and logs)
		colors: true,


		// level of logging
		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
		logLevel: config.LOG_INFO,


		// enable / disable watching file and executing tests whenever any file changes
		autoWatch: true,


		// start these browsers
		// available browser launchers: [url]https://npmjs.org/browse/keyword/karma-launcher[/url]
		browsers: ['PhantomJS'],


		// Continuous Integration mode
		// if true, Karma captures browsers, runs the tests and exits
		singleRun: false,

		preprocessors: {
			'test/**/*.es': ['babel', 'coverage']
		},
		coverageReporter: {
			type: 'lcov',
			dir: 'coverage',
			subdir: '.'
		},
		babelPreprocessor: {
			options: {
				sourceMap: 'inline',
				presets: ["es2015", "stage-0"],
				//plugins: ["transform-es2015-modules-amd"]
			},
			filename: function(file) {
				return file.originalPath.replace(/\.es$/, '.js').replace(/\/src\//, '/js/');
			},
			sourceFileName: function(file) {
				return file.originalPath;
			}
		}
	});
};

@@ -1963,16 +1963,48 @@
 sors: %7B%0A
+%09%09%09'src/**/*.js': %5B'coverage'%5D,%0A
 %09%09%09'test
@@ -2022,28 +2022,16 @@
 %5B'babel'
-, 'coverage'
 %5D%0A%09%09%7D,%0A%09

fix in karma config