diff --git a/Gruntfile.js b/Gruntfile.js index 0e42681150..827b78654b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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"]); };