istanbul instrumentation
This commit is contained in:
parent
004a0372ab
commit
97f3911c93
@ -4,7 +4,8 @@
|
||||
"description": "",
|
||||
"main": "wxwallet.js",
|
||||
"scripts": {
|
||||
"test": "mocha --delay"
|
||||
"test": "mocha --delay",
|
||||
"test-cover": "istanbul cover -x libwrapper.js _mocha -- --delay"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -26,6 +27,7 @@
|
||||
"gulp-tar": "^1.8.0",
|
||||
"gulp-typescript": "^2.10.0",
|
||||
"gulp-zip": "^3.1.0",
|
||||
"istanbul-lib-instrument": "^1.0.0-alpha.6",
|
||||
"jed": "^1.1.0",
|
||||
"map-stream": "0.0.6",
|
||||
"mocha": "^2.4.5",
|
||||
@ -33,6 +35,7 @@
|
||||
"systemjs": "^0.19.14",
|
||||
"through2": "^2.0.1",
|
||||
"typescript": "^1.9.0-dev.20160225",
|
||||
"typhonjs-istanbul-instrument-jspm": "^0.1.0",
|
||||
"vinyl": "^1.1.1"
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
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 ...'");
|
||||
@ -23,10 +23,21 @@ let emsc = require("../lib/emscripten/libwrapper.js");
|
||||
// Do it here, since it breaks 'require'' for libwrapper
|
||||
let System = require("systemjs");
|
||||
|
||||
|
||||
System.config({
|
||||
defaultJSExtensions: true
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user