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

Fudge

06/14/2019, 12:15 PM
Anyone know how to get code coverage working for common code in multiplatform projects? When I'm running coverage it seems to only track
jvmMain
code.
h

h0tk3y

06/14/2019, 12:27 PM
Which code coverage tool are you using? Could you please share the build script part that sets up the coverage?
f

Fudge

06/14/2019, 12:34 PM
The 'IntelliJ IDEA` coverage runner, I did not set up coverage manually in gradle
h

h0tk3y

06/14/2019, 1:08 PM
Thanks, I'll take a look. This may be a bug in how the IJ coverage mechanism collects the sources from an MPP.
👍 1
I was able to reproduce it by running tests with coverage in an MPP. It's now tracked under https://youtrack.jetbrains.com/issue/KT-31983
f

Fudge

06/14/2019, 2:22 PM
Nice
2 Views