monounity / karma-typescript

Simplifying running unit tests with coverage for Typescript projects.
314 stars 109 forks source link

`lcovonly` does not create `lcov.info` #500

Closed mrdgo closed 2 years ago

mrdgo commented 2 years ago

karma.conf.js:

    karmaTypescriptConfig: {
      bundlerOptions: {
        entrypoints: /\.spec\.ts$/,
        transforms: [
          require("karma-typescript-angular2-transform")
        ],
        compilerOptions: {
          lib: ["ES2015", "DOM"]
        },
        reports: {
          lcovonly: {
            directory: 'coverage',
            subdirectory: '.',
            filename: 'lcov.info'
          },
        }
      }
    },

the file coverage/lcov.info is not created. Though the coverage report in html for the respective browser is there.

Versions: