Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij, JaCoCo for Kotlin coverage

I use IntelliJ with Kotlin and I use JaCoCo to compute tests coverage. In IntelliJ my code is covered, but I don't see the line covered percentage for my Kotlin classes. I can see it only for Java:

coverage

On the other hand my Kotlin classes are covered, my code is green or red. Also when I click on Generate Coverage Report ... in Coverage Window, it generates HTML pages and everything is very well covered.

Could you please tell me why I don't see line covered percentage in my Kotlin classes?

like image 220
Neda Avatar asked Nov 07 '22 04:11

Neda


1 Answers

It's a known problem in IDE. Please follow the related issue: https://youtrack.jetbrains.com/issue/KT-10081

like image 58
y.bedrov Avatar answered Nov 14 '22 23:11

y.bedrov