Marc
03/29/2023, 8:48 AMKover
. Does anyone know how to set up configuration in order run tests each time a coverage report task is called?Emil Kantis
03/29/2023, 8:51 AMtasks.withType<KoverReportTask>().configureEach {
dependsOn(tasks.named("test"))
}
but I would ask in #gradleJavier
03/29/2023, 8:54 AMMarc
03/29/2023, 8:55 AMJavier
03/29/2023, 8:57 AMthanksforallthefish
03/29/2023, 9:14 AMKover tasks are already set to run if you run the test task. Which is the use case to do the reversed flow?really? I was thinking of looking at moving from jacoco to kover because jacoco is not very precise with kotlin code, but I don’t think it’s right to run coverage every time you run tests. at least, I don’t think it’s common to run all tests all the time, that is more CI job, but if you don’t run all the tests coverage is just a waste of time
Marc
03/29/2023, 9:15 AMJavier
03/29/2023, 9:16 AMthanksforallthefish
03/29/2023, 9:16 AMMarc
03/29/2023, 9:17 AMJavier
03/29/2023, 9:17 AM./gradlew test —dry-run
so we can check if that behavior is preserved?Marc
03/29/2023, 9:20 AMkover
related task in the output:
:feature:widgets:koverFindJar SKIPPED
SKIPPED
IDKWJavier
03/29/2023, 9:22 AMMarc
03/29/2023, 9:24 AMJavier
03/29/2023, 10:18 AMMarc
03/29/2023, 10:27 AMJavier
03/29/2023, 10:45 AMMarc
03/29/2023, 11:28 AMKoverReportTask
not present 😕Emil Kantis
03/29/2023, 11:31 AMJavier
03/29/2023, 11:34 AMMarc
03/29/2023, 12:01 PM> Task :feature:widgets:koverXmlReportDevelopDebug SKIPPED
Task 'koverXmlReportDevelopDebug' will be skipped because no tests were executed
'kapt.generateStubs' is not used by the 'kotlin-kapt' plugin
Javier
03/29/2023, 12:03 PM