https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

ptsiogas

12/18/2021, 11:12 AM
Hello, Has anyone created a GitHub action/app for kotlinx-kover?
j

Javier

12/18/2021, 11:14 AM
What is the benefit of having an action over running the tasks directly?
p

ptsiogas

12/18/2021, 11:23 AM
It would be nice to display the kover report in a PR automatically
j

Javier

12/18/2021, 11:27 AM
You can use the report with other platforms like codecov or sonarqube
sadly it is not working for everyone
at least sonarqube, I haven't tried codecov
if try kover with it, share feedback here :)
p

ptsiogas

12/18/2021, 11:28 AM
That’s true, but it’s nice to have alternatives
Something like that, but for kover xml file report, would be a nice
j

Javier

12/18/2021, 12:33 PM
Personally I would prefer to know if the coverage is lower or higher than before
👍 1
p

ptsiogas

12/18/2021, 12:34 PM
and that too
this is also good but it does not support the Intellij Coverage Report xml yet.
m

Mustafa Ozhan

12/18/2021, 2:59 PM
Hello you do not need a GitHub app for that, you will need the app for the tool that you want to use ie. you can use
kover
to generate reports and upload it with other app, like codecov, codacy etc. example: https://github.com/Oztechan/CCC/blob/develop/.github/workflows/main.yml#L65-L75 these 2 steps uploads my covarage reports generated with
kover
into Codecov and Codacy, as you can see apps are belongs to 3rd party services meanwhile the
kover
job that generates those reports is depend on
build
job so no need to that one more time
p

ptsiogas

12/18/2021, 3:04 PM
Neat solution but I am trying to make it work without tools like Codacy as a PoC.
👍 1
j

Javier

12/18/2021, 5:33 PM
@Mustafa Ozhan have you got it working with Sonarqube?
m

Mustafa Ozhan

12/18/2021, 5:34 PM
nope, I mean I din’t try. I use Codecov and Codacy but should be the same once you got the reports
the key point here is
Kover
don’t merge the reports (for now, i created issue for that), so any tool can accept seperate reports can view it
j

Javier

12/18/2021, 5:42 PM
sadly I can't get it working with sonarqube (or sonarcloud)
I haven't tried codecov or codacy, don't remember but one of them was failing for me when I was omitting common package directories
I am unable to get it working with codacy, probably because the missing common package folders?
yep, the problem was that...
KMP is generating an empty report for me
16 Views