aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2013-10-23 11:37:36 -0700
committerMihai Bazon <mihai.bazon@gmail.com>2013-10-23 11:37:36 -0700
commitaafe2e1db385f4e087b0c6140ead490ef5ccae72 (patch)
treecaf446386d417d061f99a52b589c802a9987dbfa
parent63d04fff69de5e4c63f1a2476e57555805cbf401 (diff)
parent118105db43b0d0b45a96b943f63efd1c06486802 (diff)
downloadtracifyjs-aafe2e1db385f4e087b0c6140ead490ef5ccae72.tar.gz
tracifyjs-aafe2e1db385f4e087b0c6140ead490ef5ccae72.zip
Merge pull request #322 from rvanvelzen/test-exit-code-1
Add an exit code to the test suite
-rwxr-xr-xtest/run-tests.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run-tests.js b/test/run-tests.js
index 0568c6a7..a3268dc3 100755
--- a/test/run-tests.js
+++ b/test/run-tests.js
@@ -7,8 +7,10 @@ var assert = require("assert");
var sys = require("util");
var tests_dir = path.dirname(module.filename);
+var failures = 0;
run_compress_tests();
+if (failures) process.exit(1);
/* -----[ utils ]----- */
@@ -83,6 +85,7 @@ function run_compress_tests() {
output: output,
expected: expect
});
+ failures++;
}
}
var tests = parse_test(path.resolve(dir, file));