summaryrefslogtreecommitdiffstats
path: root/test/karma.conf.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/karma.conf.js')
-rw-r--r--test/karma.conf.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/karma.conf.js b/test/karma.conf.js
new file mode 100644
index 0000000..d639b36
--- /dev/null
+++ b/test/karma.conf.js
@@ -0,0 +1,56 @@
+'use strict';
+
+module.exports = function(config) {
+ config.set({
+ basePath: '..',
+
+ browsers: [
+ 'chrome',
+ 'Firefox'
+ ],
+
+ frameworks: [
+ 'mocha',
+ 'chai-sinon'
+ ],
+
+ reporters: [
+ 'mocha',
+ 'coverage'
+ ],
+
+ coverageReporter: {
+ type : 'lcov',
+ dir : 'test/',
+ subdir: 'coverage'
+ },
+
+ preprocessors: {
+ 'fastdom.js': ['coverage'],
+ 'extensions/*.js': ['coverage']
+ },
+
+ client: {
+ captureConsole: true,
+ mocha: { ui: 'tdd' }
+ },
+
+ customLaunchers: {
+ chrome: {
+ base: 'Chrome',
+ flags: ['--no-sandbox']
+ }
+ },
+
+ files: [
+ 'fastdom.js',
+ 'extensions/fastdom-promised.js',
+ 'extensions/fastdom-sandbox.js',
+ 'test/fastdom-sandbox-test.js',
+ 'test/fastdom-promised-test.js',
+ 'test/fastdom-strict-test.js',
+ 'test/fastdom-test.js',
+ { pattern: 'fastdom-strict.js', included: false }
+ ]
+ });
+};