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

What is the meaning of the koverGenerateArtifact task? #558

Closed
roeniss opened this issue Mar 5, 2024 · 2 comments
Closed

What is the meaning of the koverGenerateArtifact task? #558

roeniss opened this issue Mar 5, 2024 · 2 comments
Assignees
Labels
Question Support request issue type S: waiting for clarification Status: additional information required to proceed

Comments

@roeniss
Copy link

roeniss commented Mar 5, 2024

Describe what you would like to clarify about Kover

Hi. I've found that kover plugin adds some tasks to original check task:

./gradlew check --dry-run

:ktfmtCheckMain SKIPPED
:ktfmtCheckTest SKIPPED
:checkKotlinGradlePluginConfigurationErrors SKIPPED
:compileKotlin SKIPPED
:compileJava SKIPPED
:processResources SKIPPED
:classes SKIPPED
:compileTestKotlin SKIPPED
:compileTestJava SKIPPED
:koverFindJar SKIPPED         <<
:processTestResources SKIPPED
:testClasses SKIPPED
:test SKIPPED
:koverGenerateArtifact SKIPPED         <<
:koverVerify SKIPPED         <<
:check SKIPPED

BUILD SUCCESSFUL in 445ms

But I couldn't find the related code or documentation. What is the actual action/purpose of that?

@roeniss roeniss added Question Support request issue type S: untriaged Status: issue reported but unprocessed labels Mar 5, 2024
@shanshin
Copy link
Collaborator

Hi,
for Kotlin JVM projects by default Kover validate verification rules on running check task (koverVerify task).
koverGenerateArtifact and koverFindJar are internal Kover tasks, they should not be called explicitly and are details of the implementation of a specific version of the plugin. Their names, the logic of their work and the actions performed may vary depending on the version.

For this version of the plugin, koverFindJar performs a resolve of JVM instrumentation agent, koverGenerateArtifact collect important information about current project required for generating reports (source and output directories, test tasks) and write it to appropriate file - Gradle artifact.

@shanshin shanshin added S: in progress Status: implementing or design in process S: waiting for clarification Status: additional information required to proceed and removed S: untriaged Status: issue reported but unprocessed S: in progress Status: implementing or design in process labels Mar 13, 2024
@roeniss
Copy link
Author

roeniss commented Mar 21, 2024

I understood. thank you!

@roeniss roeniss closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Support request issue type S: waiting for clarification Status: additional information required to proceed
Projects
None yet
Development

No branches or pull requests

2 participants