Uses itay/node-cover. Run with:
npm run-script test-cover
npm run-script spec-cover
Both will generate cover_html folders with an index.html containing the coverage report. There unfortunately doesn't seem to be a cross-platform way of automatically launching that index.html in your default browser .
This reveals a few missing spots, in addition to large swathes of untested-but-that's-OK code (like shims and long stack trace code).
Ideally we would be able to run this in different browser environments (e.g. to make sure the shims are covered), but that would require a decent bit more work, I believe.
NB some small additions were necessary to make the Jasmine specs run in Node.