mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 03:42:27 +03:00
Add task for API tests
This commit is contained in:
parent
4860cccef9
commit
6f12870e70
@ -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 New Issue
Block a user