mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Add task for API tests
This commit is contained in:
parent
4860cccef9
commit
6f12870e70
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,8 @@
|
|||
|
||||
// Unit test all the things!
|
||||
nodeunit: {
|
||||
all: ['core/test/ghost/**/test-*.js']
|
||||
all: ['core/test/ghost/**/test-*.js'],
|
||||
api: ['core/test/ghost/test-api.js']
|
||||
},
|
||||
|
||||
// Compile all the SASS!
|
||||
|
@ -45,6 +46,9 @@
|
|||
// TODO: Git submodule init/update (https://github.com/jaubourg/grunt-update-submodules)?
|
||||
grunt.registerTask("init", ["compass:admin"]);
|
||||
|
||||
// Run API tests only
|
||||
grunt.registerTask("test-api", ["nodeunit:api"]);
|
||||
|
||||
// Run tests and lint code
|
||||
grunt.registerTask("validate", ["jslint", "nodeunit:all"]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue