Add task for API tests

This commit is contained in:
Ricardo Tomasi 2013-05-20 01:22:00 -03:00
parent 4860cccef9
commit 6f12870e70

View File

@ -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"]);
};