Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

karma coverage average summary #464

Open
rajjaiswalsaumya opened this issue Jan 31, 2022 · 2 comments
Open

karma coverage average summary #464

rajjaiswalsaumya opened this issue Jan 31, 2022 · 2 comments

Comments

@rajjaiswalsaumya
Copy link

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

@neutraali
Copy link

Have you tried:

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

@rajjaiswalsaumya
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants