aboutsummaryrefslogtreecommitdiffstats
path: root/Cakefile
diff options
context:
space:
mode:
authorPhil Crosby2012-06-10 02:05:17 -0700
committerPhil Crosby2012-06-10 02:05:17 -0700
commit2207fcf6a66b96536dd805b0b9c2f2825980bf63 (patch)
tree0b0647e04cfb94c366997e524e4a1494acfc6b35 /Cakefile
parente4f407af24524ef70b910ef18af1a4d14f829598 (diff)
downloadvimium-2207fcf6a66b96536dd805b0b9c2f2825980bf63.tar.bz2
Run all tests from within the Cakefile. Not sure why I used a subprocess before.
Maybe to make any stacktraces thrown by tests shorter.
Diffstat (limited to 'Cakefile')
-rw-r--r--Cakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Cakefile b/Cakefile
index c9f855c9..8954ea1c 100644
--- a/Cakefile
+++ b/Cakefile
@@ -9,6 +9,5 @@ task "test", "run all unit tests", ->
# Run running the command `node tests/*_test.js`.
test_files = fs.readdirSync("tests/").filter((filename) -> filename.indexOf("_test.js") > 0)
test_files = test_files.map((filename) -> "tests/" + filename)
- node = spawn "node", test_files
- node.stdout.on "data", (data) -> console.log data.toString().trim()
- node.stderr.on "data", (data) -> console.log data.toString().trim()
+ test_files.forEach (file) -> require "./" + file
+ Tests.run()