Add mochaSelenium config in Gruntfile (tests not running yet)

This commit is contained in:
jekkos
2015-03-20 13:50:14 +01:00
parent ced5ca4e2e
commit 9ead6fcca9
2 changed files with 23 additions and 4 deletions

View File

@@ -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']

View File

@@ -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"
}
}
}