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

Add markdown summary report #419

Closed
efenderbosch-atg opened this issue Jun 29, 2023 · 3 comments
Closed

Add markdown summary report #419

efenderbosch-atg opened this issue Jun 29, 2023 · 3 comments
Assignees
Labels
Feature Feature request issue type Kover Gradle Plugin S: postponed Status: work on the issue is not in the short term plans

Comments

@efenderbosch-atg
Copy link

What is your use-case and why do you need this feature?
I'd like a kover/report.md that would be appropriate for use as a PR comment via github actions, just the "Overall Coverage Summary" from the HTML report would be great.

Maybe I can grab the HTML? Git hub will format it like this:

Package Class, % Method, % Branch, % Line, % Instruction, %
all classes 97.5% (79/81) 94.3% (181/192) 89.4% (93/104) 98.4% (569/578) 98.4% (3388/3443)
@efenderbosch-atg efenderbosch-atg added Feature Feature request issue type S: untriaged Status: issue reported but unprocessed labels Jun 29, 2023
@efenderbosch-atg
Copy link
Author

As markdown it could look like

foo-project: Overall Coverage Summary

Package Class, % Method, % Branch, % Line, % Instruction, %
all classes 97.6% (80/82) 94.1% (176/187) 88.8% (87/98) 98.5% (543/551) 97.2% (3258/3351)

@shanshin shanshin added Kover Gradle Plugin S: postponed Status: work on the issue is not in the short term plans and removed S: untriaged Status: issue reported but unprocessed labels Jun 30, 2023
@efenderbosch-atg
Copy link
Author

efenderbosch-atg commented Jul 12, 2023

For now, I'm converting to markdown w/ pandoc and grabbing the summary w/ sed as a workaround:

pandoc build/reports/kover/html/index.html -f html -t gfm | \
  sed -n '/# foo-bar-service: Overall Coverage Summary/,/## Coverage Breakdown/p' | \
  grep -v '## Coverage Breakdown' >> $GITHUB_STEP_SUMMARY

@shanshin
Copy link
Collaborator

Closed in favor of #605

@shanshin shanshin closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature request issue type Kover Gradle Plugin S: postponed Status: work on the issue is not in the short term plans
Projects
None yet
Development

No branches or pull requests

2 participants