aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-02 21:13:56 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-02 21:13:56 +0100
commitdb9177bb17b508ef4a6fa1d0707d3297fbd66c56 (patch)
tree57deb5c83d13beefe3eeaef9767a92cc9335c20b /test/run_tests.js
parentd76fce80779f1fe3902d635ba6d9934927060712 (diff)
TAP-based test harness
Diffstat (limited to 'test/run_tests.js')
-rw-r--r--test/run_tests.js56
1 files changed, 0 insertions, 56 deletions
diff --git a/test/run_tests.js b/test/run_tests.js
deleted file mode 100644
index 0c7b2c4c1..000000000
--- a/test/run_tests.js
+++ /dev/null
@@ -1,56 +0,0 @@
-
-/**
- * Bridge between the mocha test runner / nodejs
- * and the typescript / the wallet's module system.
- *
- * The test cases use better-assert as assert library
- * with mocha's bdd UI.
- */
-
-"use strict";
-
-let assert = require("better-assert");
-let vm = require("vm");
-let fs = require("fs");
-let instrument = require("typhonjs-istanbul-instrument-jspm").default;
-
-if ("function" !== typeof run) {
- throw Error("test must be run with 'mocha --delay ...'");
-}
-
-let emsc = require("../lib/emscripten/libwrapper.js");
-
-// Do it here, since it breaks 'require'' for libwrapper
-let System = require("systemjs");
-
-
-// When instrumenting code with istanbul,
-// automatic module type detection fails,
-// thus we specify it here manually.
-System.config({
- defaultJSExtensions: true,
- meta: {
- './test/tests/taler.js': {
- format: 'register'
- },
- './lib/wallet/*': {
- format: 'register'
- }
- }
-});
-
-instrument(System);
-
-let mod = System.newModule({Module: emsc});
-let modName = System.normalizeSync(__dirname + "/../lib/emscripten/emsc");
-console.log("registering", modName);
-System.set(modName, mod);
-
-System.import("./test/tests/taler.js")
- .then((t) => {
- t.declareTests(assert, context, it);
- setTimeout(run, 1);
- })
- .catch((e) => {
- console.error("failed to load module", e.stack);
- });