/**
 * KarmaConfig
 * @description Configure the karma test runner.
 */

var config = require("./Config"),
	javascriptSources = config.JavaScripts.paths.devDir + "/**/*.js";

module.exports = function (karmaConfig) {
	"use strict";

	karmaConfig.set({
		basePath: "../",

		singleRun: true,
		colors: true,
		captureTimeout: 12000,
		logLevel: config.LOG_INFO,
		autoWatch: false,

		frameworks: ["jasmine", "requirejs"],
		plugins: ["karma-jasmine", "karma-requirejs", "karma-coverage", "karma-chrome-launcher", "karma-firefox-launcher", "karma-safari-launcher", "karma-phantomjs-launcher"],
		reporters: ["progress", "coverage"],

		preprocessors: {
			"**/Resources/Public/Javascripts/Sources/**/*.js": "coverage",
		},

		coverageReporter: {
			reporters: [{
				type: "text-summary",
				dir: config.karma.coverageDir
			}, {
				type: "html",
				dir: config.karma.coverageDir
			}]
		},

		// List of files to load in the browser "Resources/Public/Javascripts/Tests
		files: [{
			pattern: "Resources/Public/Javascripts/Sources/**/*.js",
			included: false
		}, {
			pattern: "Resources/Public/Javascripts/Tests/Specs/**/*.js",
			included: false
		}, {
			pattern: "Resources/Public/Javascripts/Tests/SpecList.js",
			included: false
		}, "Resources/Public/Javascripts/Tests/Test-App.js"]
	});
};

/**
 * KarmaConfig
 * @description Configure the karma test runner.
 */

var config = require("./Config"),
	javascriptSources = config.JavaScripts.paths.devDir + "/**/*.js";

module.exports = function (karmaConfig) {
	"use strict";

	karmaConfig.set({
		basePath: "../",

		singleRun: true,
		colors: true,
		captureTimeout: 7000,
		logLevel: config.LOG_INFO,

		frameworks: ["jasmine", "requirejs"],
		plugins: ["karma-jasmine", "karma-requirejs", "karma-coverage", "karma-chrome-launcher", "karma-firefox-launcher", "karma-safari-launcher", "karma-phantomjs-launcher"],
		reporters: ["progress", "coverage"],

		preprocessors: {
			javascriptSources: "coverage",
		},

		coverageReporter: {
			reporters: [{
				type: "text-summary",
				dir: config.karma.coverageDir
			}, {
				type: "html",
				dir: config.karma.coverageDir
			}]
		},

		// List of files to load in the browser
		files: [{
			pattern: javascriptSources,
			included: false
		}, {
			pattern: config.karma.testsDir + "/Specs/**/*.js",
			included: false
		}, {
			pattern: config.karma.testsDir + "/SpecList.js",
			included: false
		}, config.karma.testsDir + "/Test-App.js"]
	});
};

--- 
+++ 
@@ -14,15 +14,16 @@
 
 		singleRun: true,
 		colors: true,
-		captureTimeout: 7000,
+		captureTimeout: 12000,
 		logLevel: config.LOG_INFO,
+		autoWatch: false,
 
 		frameworks: ["jasmine", "requirejs"],
 		plugins: ["karma-jasmine", "karma-requirejs", "karma-coverage", "karma-chrome-launcher", "karma-firefox-launcher", "karma-safari-launcher", "karma-phantomjs-launcher"],
 		reporters: ["progress", "coverage"],
 
 		preprocessors: {
-			javascriptSources: "coverage",
+			"**/Resources/Public/Javascripts/Sources/**/*.js": "coverage",
 		},
 
 		coverageReporter: {
@@ -35,16 +36,16 @@
 			}]
 		},
 
-		// List of files to load in the browser
+		// List of files to load in the browser "Resources/Public/Javascripts/Tests
 		files: [{
-			pattern: javascriptSources,
+			pattern: "Resources/Public/Javascripts/Sources/**/*.js",
 			included: false
 		}, {
-			pattern: config.karma.testsDir + "/Specs/**/*.js",
+			pattern: "Resources/Public/Javascripts/Tests/Specs/**/*.js",
 			included: false
 		}, {
-			pattern: config.karma.testsDir + "/SpecList.js",
+			pattern: "Resources/Public/Javascripts/Tests/SpecList.js",
 			included: false
-		}, config.karma.testsDir + "/Test-App.js"]
+		}, "Resources/Public/Javascripts/Tests/Test-App.js"]
 	});
 };
[BUGFIX] Set hard coded paths and increase the 'captureTimeout' for karma tests

This should resolve some unexplainable test fails with karma
