https://kotlinlang.org logo
Title
p

Pedro Alberto

01/26/2023, 2:52 PM
is there a way with cover that when we run koverMergedXmlReport to print the out path of the report
j

Javier

01/26/2023, 3:39 PM
you can set a different path if I remember correctly
p

Pedro Alberto

01/26/2023, 3:39 PM
you mean this ?
xmlReport {
    // set to true to run koverXmlReport task during the execution of the check task (if it exists) of the current project
    onCheck.set(false)

    // change report file name
    reportFile.set(layout.buildDirectory.file("kover/Results.xml"))
}
j

Javier

01/26/2023, 3:40 PM
I don’t have it directly, but it was on the docs
p

Pedro Alberto

01/26/2023, 3:40 PM
what am searching is more a print when the report is gerneted
my issue is that report is gernerated locally but not in CI
j

Javier

01/26/2023, 3:42 PM
you can register a task which runs after the Kover one, I think this is a Gradle use case more than a Kover one
p

Pedro Alberto

01/26/2023, 3:42 PM
eveything is green but I don't see the report
but am running same comand in both machines
j

Javier

01/26/2023, 3:48 PM
I don't know, it is working for me locally and on GitHub Actions. You can run a command in your CI after the one which generates the kover report and it can prints the
build/reports
tree for example
p

Pedro Alberto

01/26/2023, 3:49 PM
which command you running for that cus currently I need to connect to SSH
to go into the runner
j

Javier

01/26/2023, 3:59 PM
I run koverMergedReport or something so