Skip to content

Commit

Permalink
Use karma runner to execute test against browser. #40
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Nov 18, 2014
1 parent 1d3dd4f commit 2a89732
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 11 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = function(config) {
config.set({
browsers : ['PhantomJS'],
frameworks: ['jasmine'],
files: [
'js/*.js',
'spec/*.js'
],
singleRun: true
});
};
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
"canvas": "~1.0"
},
"devDependencies": {
"jasmine-core": "~2.1.2",
"jasmine-node": "~2.0.0",
"smoosh": ">=0.3.1",
"jasmine-core": "~2.0.0"
"karma": "~0.12.25",
"karma-jasmine": "~0.3.0",
"karma-phantomjs-launcher": "~0.1.4",
"smoosh": ">=0.3.1"
},
"repository": {
"type": "git",
Expand All @@ -33,9 +36,9 @@
"node": ">= 0.6.0"
},
"bin": {
"imagediff" : "./bin/imagediff"
"imagediff": "./bin/imagediff"
},
"scripts": {
"test": "cd spec && jasmine-node --captureExceptions ."
"test": "cd spec && jasmine-node --captureExceptions . && cd .. && karma start karma.conf.js"
}
}

0 comments on commit 2a89732

Please sign in to comment.