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