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

coverageReporter lcov storing html reports in same fir as source code

Open estani opened this issue 9 years ago • 1 comments

With the following configuration

coverageReporter = {
            type: 'lcov',
            dir: 'reports/',
            subdir: 'coverage'
};

is lcov result correctly deployed in reports/coverage. The html files are generated in the same directory where the source files are.

karma version 0.13.9

estani avatar Feb 02 '16 15:02 estani

Try this way:

coverageReporter: {
            dir: 'reports',
            reporters: [
                {
                    type: 'lcov',
                    subdir: 'coverage'
                }
            ]
}

westpole avatar Feb 21 '16 01:02 westpole