mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-16 12:57:32 -04:00
Add mochaSelenium config in Gruntfile (tests not running yet)
This commit is contained in:
15
Gruntfile.js
15
Gruntfile.js
@@ -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']
|
||||
|
||||
12
package.json
12
package.json
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user