https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

Stefanos Chaliasos

10/29/2021, 7:26 AM
Hi, does anyone knows if there is a way to get code coverage for the test suite of the kotlin repo? Specifically, I am interested in getting code coverage for the kotlin compiler. Thanks in advance!!
d

dmitriy.novozhilov

10/29/2021, 12:37 PM
There is no ready solution for it. You can try to setup some coverage tool in kotlin project by yourself, if you really want BTW why do you need this (if it's not a secret)?
s

Stefanos Chaliasos

10/29/2021, 3:40 PM
Thanks for your quick response! I want to measure the coverage for some experiments in a research project.
a

andylamax

10/30/2021, 2:28 AM
didn't I hear a mention about a lib called Kover?
s

Stefanos Chaliasos

11/01/2021, 7:18 AM
@andylamax Do you know if they used it in the kotlin repo? I couldn't find anything. I am not very familiar with Gradle, and their build scripts are a bit complicated to edit them. I gave it a try but without success.
d

dmitriy.novozhilov

11/01/2021, 7:21 AM
There are no coverage tools used in kotlin repo
👍 1
a

andylamax

11/01/2021, 8:31 AM
Sadly I do not. I just heard of Kover in the latest Kotlin Event. I don't even know how to hook it up yet with gradle or any other build tool
4 Views