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

Is it possible to generate both xml and html report in a single gradle task? #661

Closed
artyomefimov opened this issue Jul 31, 2024 · 4 comments
Assignees
Labels
Question Support request issue type S: untriaged Status: issue reported but unprocessed

Comments

@artyomefimov
Copy link

Hi, we use kover to generate reports on CI. Now we use generation only in xml format, but it would be great to generate both xml and html reports using the single gradle task.
As I know, currently the only option to generate both types of reports is to run two tasks: koverXmlReportVariantName and koverHtmlReportVariantName but it's rather expensive to run both of these tasks on each pipeline.

Is there a task that can generate both html and xml reports?

Kover version we use is 0.8.3

Thanks!

@artyomefimov artyomefimov added Question Support request issue type S: untriaged Status: issue reported but unprocessed labels Jul 31, 2024
@shanshin
Copy link
Collaborator

Hi,
the generation of an XML report and an HTML report is generated quickly enough if both commands are called at the same time, like this ./gradlew koverXmlReportVariantName koverHtmlReportVariantName

@artyomefimov
Copy link
Author

And combination of these two commands called at the same time will run unit tests twice? Or the reports generation will use the result of a single unit tests run?

@shanshin
Copy link
Collaborator

shanshin commented Jul 31, 2024

And combination of these two commands called at the same time will run unit tests twice?

the tests will be run once, and the outputs of the run will be reused in both Kover tasks (refer to the docs to learn more about Gradle task graph and inputs/outputs).

There are no repetitions in the execution graph, so if two tasks depend on the same one, then it is executed only once.

@artyomefimov
Copy link
Author

Thank you!

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: untriaged Status: issue reported but unprocessed
Projects
None yet
Development

No branches or pull requests

2 participants