From 6f12870e708eda5fcae9cb4cff70ca989c6239c2 Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Mon, 20 May 2013 01:22:00 -0300 Subject: [PATCH] Add task for API tests --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"]); };