Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

full vows test

  • Loading branch information...
commit 4a0b21ef28522d765123d28fb4fd1b910c41609f 1 parent e7fae1d
Sébastien Dolard authored
Showing with 0 additions and 40 deletions.
  1. +0 −40 test/run_test.js
40 test/run_test.js
View
@@ -1,40 +0,0 @@
-var
-fs = require('fs'),
-path = require("path"),
-RE_JS_FILE=/.*\.js$/i;
-RE_BENCH_FILE=/.*bench.*/i;
-
-fs.readdir(__dirname, function (err, files) {
- var
- i,
- failures = 0,
- file;
-
- for(i = 0; i < files.length; i++) {
- file = files[i];
-
- if (!RE_JS_FILE.test(file)) {
- continue;
- }
- if (file === "run_test.js") {
- continue;
- }
- if (RE_BENCH_FILE.test(file)) {
- continue;
- }
-
- try {
- require(path.resolve(__dirname, file));
- console.log("OK - %s ", file);
- } catch (e) {
- console.log("KO - %s ", file, e);
- failures++;
- }
-
- }
- if (!failures) {
- return console.log("#all pass");
- }
-
- console.error("%d %s", failures, "failure" + (failures > 1 ? "s" : ""));
-});
Please sign in to comment.
Something went wrong with that request. Please try again.