Skip to content

Commit 70a4f2b

Browse files
committed
Run unit tests using vows (requires node)
1 parent 2fe464e commit 70a4f2b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ task :spec do
1212
end
1313
end
1414

15+
desc "Run all unit tests"
16+
task :test do
17+
exec "vows test/*_test.js"
18+
end
19+
1520
# Creates a task that uses the various template wrappers to make a wrapped
1621
# output file. There is some extra complexity because Dojo and YUI use
1722
# different final locations.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"description": "Logic-less {{mustache}} templates with JavaScript",
55
"author": "mustache.js Authors <http://github.com/janl/mustache.js>",
66
"keywords": ["mustache", "template", "templates", "ejs"],
7-
"main": "./mustache"
7+
"main": "./mustache",
8+
"devDependencies": {
9+
"vows": "0.6.x"
10+
}
811
}

0 commit comments

Comments
 (0)