Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

use HTML reporter and default to autoWatch/singleRun mode

Christopher Hiller8ef51a563582
diff --git a/Makefile b/Makefile
index b05ce657..25d84f5c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ test: lint test-node test-browser
test-browser-unit:
@printf "==> [Test :: Browser]\n"
- NODE_PATH=. $(KARMA) start
+ NODE_PATH=. $(KARMA) start --single-run
test-browser-bdd:
@printf "==> [Test :: Browser :: BDD]\n"
diff --git a/karma.conf.js b/karma.conf.js
index 266fe72b..4aa108b2 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -49,7 +49,11 @@ module.exports = function(config) {
colors: true,
browsers: ['PhantomJS'],
logLevel: config.LOG_INFO,
- singleRun: true
+ client: {
+ mocha: {
+ reporter: 'html'
+ }
+ }
};
// see https://github.com/saucelabs/karma-sauce-example