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 Kover support #3624

Merged
merged 4 commits into from
Sep 30, 2024
Merged

Add Kover support #3624

merged 4 commits into from
Sep 30, 2024

Conversation

0xnm
Copy link
Contributor

@0xnm 0xnm commented Sep 29, 2024

This PR adds Kover support declared in #3610.

Overall functionality is similar to what ScoverageModule and https://github.com/lefou/mill-jacoco are doing:

  • Each test run gets instrumented by Kover and binary report is generated (this requires mixing in KoverTests trait)
  • There is a possibility to generate HTML/XML report out of it using __.kover.htmlReport / __.kover.xmlReport respectively on each module having KoverModule mixed in.
  • Also there is a possibility to declare module implementing KoverReportModule trait and use htmlReportAll / xmlReportAll tasks to collect coverage for all modules in the project.

Kover Agent documentation: https://kotlin.github.io/kotlinx-kover/jvm-agent
Kover Reporter documentation: https://kotlin.github.io/kotlinx-kover/cli/

@0xnm 0xnm marked this pull request as ready for review September 29, 2024 11:19
@lihaoyi lihaoyi merged commit 973e368 into com-lihaoyi:main Sep 30, 2024
24 checks passed
@lihaoyi
Copy link
Member

lihaoyi commented Sep 30, 2024

Looks good, thanks @0xnm ! Will transfer the bounty

@lefou lefou added this to the 0.12.0-RC3 milestone Sep 30, 2024
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

Successfully merging this pull request may close these issues.

3 participants