Skip to content

Commit

Permalink
Add mochaSelenium config in Gruntfile (tests not running yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekkos committed Mar 20, 2015
1 parent ced5ca4 commit 9ead6fc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
15 changes: 15 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ module.exports = function(grunt) {
dest: 'application/views/partial/header.php'
}
},
mochaSelenium: {
options : {
reporter: 'spec',
timeout: 30e3,
usePromises: true,
useSystemPhantom: true
},
phantomjs: {
src: ['test/*.js'],
options: {
// phantomjs must be in the $PATH when invoked
browserName: 'phantomjs'
}
}
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
"license": "MIT",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-concat": "~0.5.1",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-uglify": "~0.8.0",
"grunt-script-link-tags": "~1.0.3"
"grunt-contrib-watch": "~0.5.3",
"grunt-mocha-selenium": "~1.0.1",
"grunt-script-link-tags": "~1.0.3",
"grunt-selenium-launcher": "^0.1.1",
"mocha": "^2.2.1",
"phantomjs": "^1.9.7-8"
}
}
}

0 comments on commit 9ead6fc

Please sign in to comment.