Skip to content

Commit

Permalink
Merge pull request #2 from eiriksm/browser
Browse files Browse the repository at this point in the history
Add browser tests.
  • Loading branch information
eiriksm committed Oct 9, 2014
2 parents 837261c + 55bb6a4 commit d18fa08
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ test-cov:
test:
npm test

ci:
./node_modules/browserify/bin/cmd.js test/test.js -o browser.js
./node_modules/karma/bin/karma start karma.conf.js
make test-cov

.PHONY: test test-cov
17 changes: 17 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = function(config) {
config.set({
frameworks: ['mocha'],
logLevel: config.LOG_INFO,
browsers: [
'PhantomJS'
],
reporters: [
'dots',
],

files: [
'browser.js'
],
singleRun: true
});
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
},
"homepage": "https://github.com/eiriksm/petulant-octo-ironman",
"devDependencies": {
"browserify": "^6.0.3",
"coveralls": "^2.11.2",
"istanbul": "^0.3.2",
"karma": "^0.12.24",
"karma-mocha": "^0.1.9",
"karma-phantomjs-launcher": "^0.1.4",
"mocha": "^1.21.4",
"should": "^4.0.4"
}
Expand Down

0 comments on commit d18fa08

Please sign in to comment.