istanbul-lite (2020.5.31)
this zero-dependency package will provide browser-compatible version of istanbul coverage-tool (v0.4.5), with working web-demo
download standalone app
run browser-tests
edit or paste script below to instrument and cover
if (true) { console.log("hello"); } else { console.log("bye"); } let fibonacci = { [Symbol.iterator]() { let pre = 0, cur = 1; return { next() { [pre, cur] = [cur, pre + cur]; return { done: false, value: cur } } } } } for (var n of fibonacci) { // truncate the sequence at 1000 if (n > 1000) break; console.log(n); }
instrumented-code
stderr and stdout
[ this app was created with
utility2
]