karma-runner/karma-coverage

karma coverage average summary

rajjaiswalsaumya opened this issue · 2 comments

I need a way to report average of all test coverage. Is there a way to get callback of all coverage to calculate average ?

Have you tried:

reporters: [
    { type: "text-summary" }
]

This does not print average. It prints for each category such as line, branches etc. I need a way to print average coverage from the given category such as (line + branches) / 2 or (line + branches + functions) / 3 or (line + branches + functions + statements) / 4