Uses Karma to run the webpacked Jasmine specs in a browser environment (headless Chrome). It uses karma-coverage-istanbul-reporter to write a test coverage report into coverage/browser/html/index.html.
Output
- MyClass: 88.89%
- index.html
- coverage-final.json
Runs the Jasmine specs and uses Istanbul's cover command to report code coverage into coverage/node/cover/index.html.
Specifics
- Tests the compiled output (ES5 code)
- Coverage is made for the compiled output (ES5 code) WITHOUT remapping it to TypeScript
Coverage
MyTest.js: 80%
Output
Uses remap-istanbul to convert Istanbul code coverage information (coverage.raw.json) from the Node.js test run into its original source positions (coverage-node.json) based on JavaScript Source Maps from the original TypeScript code.
Coverage
- /
Specifics
- Needs coverage.raw.json
Output
Same us above but with HTML output based on original source positions.
Coverage
MyTest.ts: 75%
Specifics
- Gives HTML coverage of TS source code mapped from JS code coverage information (coverage.raw.json)
Output