Closed rhutzel closed 7 years ago
Merged in changes to get coverage working. Works on autoWatch
ed testing as well. The coverage files will save to a coverage
directory using HTML & lcov output. The lcov file is lcov.info
, the rest of the files in the coverage
directory support the HTML output.
For existing projects consult the above commits for changes. But here are the highlights:
karma.conf.js
require('karma-remap-istanbul')
replaced with require('karma-coverage-istanbul-reporter')
remapIstanbulReporter
replaced with configuration for coverageIstanbulReporter
reporters
list, karma-remap-istanbul
replaced by coverage-istanbul
package.json
angular-library-set
to the GitHub project for now @HEADkarma-remap-istanbul
and sourcemap-istanbul-instrumenter-loader
istanbul-instrumenter-loader
and karma-coverage-istanbul-reporter
tsconfig.test.json
as the TypeScript configuration for testswebpack.test.js
loaders were updated to:
tsconfig.test.json
as the TypeScript configurationistanbul-insrumenter-loader
Yeah, I haven't made the effort to do coverage reports yet, but I'll see if I can get to it this weekend.