diff --git a/.karma b/.karma new file mode 100644 index 0000000..e089313 --- /dev/null +++ b/.karma @@ -0,0 +1,42 @@ +// Karma configuration +// Generated on Fri Feb 28 2014 13:51:27 GMT+0400 (MSK) + +module.exports = function(config) { + config.set({ + basePath: '', + frameworks: ['mocha', 'browserify'], + + files: [ + 'tests/browser.js' + ], + exclude: [], + + preprocessors: { + 'tests/browser.js': ['browserify'] + }, + + reporters: ['progress'], + + port: 9876, + + colors: true, + logLevel: config.LOG_INFO, + autoWatch: false, + + // Start these browsers, currently available: + // - Chrome + // - ChromeCanary + // - Firefox + // - Opera (has to be installed with `npm install karma-opera-launcher`) + // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`) + // - PhantomJS + // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`) + browsers: ['Chrome'], + + // If browser does not capture in given timeout [ms], kill it + captureTimeout: 60000, + // Continuous Integration mode + // if true, it capture browsers, run tests and exit + singleRun: false + }); +}; diff --git a/package.json b/package.json index 723a8ba..6e21e7f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,20 @@ "semver": "~2.2.1", "mocha": "~1.17.1", "jshint": "~2.4.3", - "zuul": "~1.5.2" + "zuul": "~1.5.2", + "browserify": "^3.31.2", + "karma-browserify": "^0.1.0", + "karma-script-launcher": "^0.1.0", + "karma-chrome-launcher": "^0.1.2", + "karma-firefox-launcher": "^0.1.3", + "karma-html2js-preprocessor": "^0.1.0", + "karma-jasmine": "^0.1.5", + "requirejs": "^2.1.11", + "karma-requirejs": "^0.2.1", + "karma-coffee-preprocessor": "^0.1.3", + "karma-phantomjs-launcher": "^0.1.2", + "karma": "^0.10.9", + "karma-mocha": "^0.1.1" }, "scripts": { "test": "make test"