karma-coverage icon indicating copy to clipboard operation
karma-coverage copied to clipboard

Include All Sources Not Working

Open SenorPez opened this issue 2 years ago • 3 comments

    coverageReporter: {
      dir: require('path').join(__dirname, './coverage/app'),
      subdir: '.',
      reporters: [
        { type: 'text-summary' },
        { type: 'lcov'}
      ],
      includeAllSources: true
    },
    preprocessors: {
      '**/src/app/**/*.ts': ['coverage']
    },

Despite configuring coverage to include all sources, it's not doing that.

Untested files are excluded from the coverage metrics.

SenorPez avatar May 18 '23 15:05 SenorPez

Configuration:

    "karma": "~6.3.0",
    "karma-coverage": "~2.1.0",

SenorPez avatar May 18 '23 15:05 SenorPez

Same issue here

TahinDani avatar Apr 16 '24 14:04 TahinDani

This is still an issue. I'm moving to https://github.com/kopach/karma-sabarivka-reporter

elninoisback avatar Feb 18 '25 15:02 elninoisback