Hey, I use kover and I like it much better than Ja...
# code-coverage
m
Hey, I use kover and I like it much better than JaCoCo because it actually make it more clear about the coverage report on my Ktor project. But I see one issue (if its a issue). But when i run my tests I get following: First image where you can see that its marked twice. One with
*Kt
and one without. When I look into my file
FtpService
I see all my code is marked green (yeey!) but when I open
FtpServiceKt
the only line marked is the second image as you can see. Is that normal behavior or is there anything I can do to fix it?
g
FtpService refers to the class itself. FtpServiceKt refers to the file which declares all top level function and variables. Once in bytecode, FtpServiceKt is actually acting like a class for the JVM, so that bytecode analysis will refer to top level stuff by grouping on this name. (aka it's normal afaik)
m
Ah I see. Is there any way to make it more clear? Only show one file?
g
I don't think so. As a workaround, you may have a dedicated file for all your feature top levels like a FtpServiceCommons...
👍 1