gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 786 forks source link

Unknown % reports #736

Open e-nouri opened 7 years ago

e-nouri commented 7 years ago

Covrage.json file was generated by karma, this is my karma config:

`// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html

module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', 'angular-cli'], plugins: [ require('karma-jasmine'), require('karma-coverage'), require('karma-verbose-reporter'), require('karma-chrome-launcher'), require('karma-safari-launcher'), require('karma-firefox-launcher'), require('karma-remap-istanbul'), require('angular-cli/plugins/karma'), require('karma-nightmare') ], files: [ { pattern: './src/test.ts', watched: false }, './bower_components/jquery/dist/jquery.min.js' ], preprocessors: { './src/test.ts': ['angular-cli'] }, mime: { 'text/x-typescript': ['ts','tsx'] }, coverageReporter: { type : 'json', subdir : '.', dir : 'coverage/', file : 'coverage.json' }, remapIstanbulReporter: { src: 'coverage/coverage.json', reports: { html: 'coverage', lcovonly: './coverage/coverage.lcov' } }, angularCli: { config: './angular-cli.json', environment: 'dev' }, nightmareOptions: { width: 800, height: 600, show: false, }, reporters: ['verbose', 'progress', 'coverage', 'karma-remap-istanbul'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: false, browsers: ['Chrome'], singleRun: true }); }; `

dougmolineux commented 6 years ago

I am seeing the same thing, also using the angular-cli