mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Casperjs tests now use test DB
This commit is contained in:
parent
33cdbb3ea7
commit
5a9db4dc76
1 changed files with 7 additions and 2 deletions
|
@ -79,6 +79,11 @@ var path = require('path'),
|
|||
options: {
|
||||
//output: "Express server listening on address:.*$"
|
||||
}
|
||||
},
|
||||
test: {
|
||||
options: {
|
||||
node_env: 'testing'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -348,7 +353,7 @@ var path = require('path'),
|
|||
grunt.registerTask('spawn-casperjs', function () {
|
||||
var done = this.async(),
|
||||
options = ['host', 'noPort', 'port', 'email', 'password'],
|
||||
args = ['test', 'admin/', '--includes=base.js', '--direct', '--log-level=debug'];
|
||||
args = ['test', 'admin/', '--includes=base.js', '--direct', '--log-level=debug', '--fail-fast'];
|
||||
|
||||
// Forward parameters from grunt to casperjs
|
||||
_.each(options, function processOption(option) {
|
||||
|
@ -387,7 +392,7 @@ var path = require('path'),
|
|||
grunt.registerTask("test-m", ["mochacli:migrate"]);
|
||||
|
||||
// Run casperjs tests only
|
||||
grunt.registerTask('test-functional', ['express', 'spawn-casperjs']);
|
||||
grunt.registerTask('test-functional', ['express:test', 'spawn-casperjs']);
|
||||
|
||||
// Run tests and lint code
|
||||
grunt.registerTask("validate", ["jslint", "mochacli:all", "test-functional"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue