Skip to content

Commit

Permalink
use HTML reporter and default to autoWatch/singleRun mode
Browse files Browse the repository at this point in the history
- use `--single-run` to execute once and exit (this is done in `Makefile`)
  • Loading branch information
boneskull committed Sep 27, 2016
1 parent 96e20df commit 8ef51a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ef51a5

Please sign in to comment.