Kotlin / kotlinx-kover

Apache License 2.0
1.25k stars 46 forks source link

Expose reportDir property in KoverHtmlReport interface #591

Closed shanshin closed 1 month ago

shanshin commented 1 month ago

if there is a need to analyze the HTML report after it is generated, or if you need to improve the report (for example, by editing CSS styles), you need to know the directory of each report. Currently, it is not possible to easily link a specific report generation task and a directory.

Resolves #590

shanshin commented 1 month ago

Why KoverHtmlTaskConfig.htmlDir is not suitable here?

because in this case, to add the doFirst action to the task, we first need to add the variantName property to KoverReport interface (to match variant), and then redo kover.reports.variant(task.variantName) so that you can work with it as an object and call it during task execution - this method requires more effort and gives exactly the same result.