From 70a4f2b986cbef18fdfcb5c5a4405726abd3af9b Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sat, 17 Mar 2012 00:05:00 -0600 Subject: [PATCH] Run unit tests using vows (requires node) --- Rakefile | 5 +++++ package.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 61700ee..37cb9b3 100644 --- a/Rakefile +++ b/Rakefile @@ -12,6 +12,11 @@ task :spec do end end +desc "Run all unit tests" +task :test do + exec "vows test/*_test.js" +end + # Creates a task that uses the various template wrappers to make a wrapped # output file. There is some extra complexity because Dojo and YUI use # different final locations. diff --git a/package.json b/package.json index 1845b86..5f348de 100644 --- a/package.json +++ b/package.json @@ -4,5 +4,8 @@ "description": "Logic-less {{mustache}} templates with JavaScript", "author": "mustache.js Authors ", "keywords": ["mustache", "template", "templates", "ejs"], - "main": "./mustache" + "main": "./mustache", + "devDependencies": { + "vows": "0.6.x" + } }