Zach Olbrys
09/26/2023, 12:36 PMczuckie
11/23/2023, 9:09 AMkv
01/10/2024, 11:21 PMxdevil666
01/11/2024, 12:34 PM[Ant:jacocoReport] Classes in bundle app do not match with execution data. For report generation the same class files must be used as at run time
Please suggest me how can I fix this issue to get overall coverage.
Question: Do I need to fix this warning or do I need to implement other library or plugin?
If needed I can share my jacoco.gradle file too...Tiago
01/16/2024, 3:05 PMpernilla
01/16/2024, 5:20 PM./gradle koverXmlReportDebug
pajatopmr
01/28/2024, 4:03 PMmarco.lied
02/01/2024, 7:40 AM$x$1
, $x$1$1
, $y$1$2
etc., but keeping all “normal” inner classes which don’t have the numeric names?
"*\$*\$*"
doesn’t seem to work
Same for $x$DefaultImpls
where "*\$DefaultImpls"
doesn’t seem to work eitherShervin
03/04/2024, 4:58 PMobject
are covered except the first line, the definition of the class:
so object MyObject : Person()
is not covered, while all the inner children are covered.
Any idea how I can resolve this?jQrgen
03/15/2024, 3:48 AMCLOVIS
04/13/2024, 7:19 PMpajatopmr
04/19/2024, 1:44 PMCLOVIS
05/12/2024, 11:18 AMhfhbd
05/21/2024, 10:34 AMmudasar187
05/24/2024, 6:07 PM*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?CLOVIS
06/02/2024, 5:17 PMPeter
06/03/2024, 11:13 AMkoverXmlReportRelease
doesn't generate merged xml report, but koverXmlReport
does?pajatopmr
06/10/2024, 9:27 PMjuliocbcotta
06/17/2024, 12:49 PMclass VeepeeKoverPlugin : Plugin<Project> {
override fun apply(project: Project) {
with(project) {
pluginManager.apply("org.jetbrains.kotlinx.kover")
configureReport()
}
}
private fun Project.configureReport() {
configure<KoverProjectExtension> {
useJacoco(libs.findVersion("jacoco").get().toString())
merge.subprojects()
reports {
filters {
excludes {
androidGeneratedClasses()
}
}
}
}
}
}
However I am getting this error
* What went wrong:
A problem was found with the configuration of task ':res:res-privalia:koverXmlReportDebug' (type 'KoverXmlTask').
- Gradle detected a problem with the following location: '/Users/julio.buenocotta/git/android-vente-privee/res/res-recycle/build/kover/bin-reports/testDebugUnitTest.exec'.
Reason: Task ':res:res-privalia:koverXmlReportDebug' uses this output of task ':res:res-recycle:testDebugUnitTest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':res:res-recycle:testDebugUnitTest' as an input of ':res:res-privalia:koverXmlReportDebug'.
2. Declare an explicit dependency on ':res:res-recycle:testDebugUnitTest' from ':res:res-privalia:koverXmlReportDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':res:res-recycle:testDebugUnitTest' from ':res:res-privalia:koverXmlReportDebug' using Task#mustRunAfter.
Some modules (like the app module) in the project have flavors, Veepee and Privalia and my apps build.gradle.kts looks like this
veepeeImplementation(project(":res:res-veepee"))
privaliaImplementation(project(":res:res-privalia"))
// For all flavors
implementation(project(":res:res-recycle"))
I don't understand why I get this error the module res-privalia
has no dependency on res-recycle
on my side...juliocbcotta
06/18/2024, 11:30 AM./gradlew koverXmlReportDebug
it does not include the flavored modules...juliocbcotta
07/09/2024, 9:27 AMArchie
07/31/2024, 8:51 AMkover {
reports {
filters {
excludes {
classes("my.package.*Dao_Impl")
// or
packages("my.package.*Dao_Impl")
// or
inheritedFrom("my.package.TodoDao")
}
}
}
}
But nothing seems to work.. Anyone has tips around this?Fergus Hewson
10/26/2024, 9:53 PMFergus Hewson
10/28/2024, 11:49 PMjuliocbcotta
10/29/2024, 3:11 PMmudasar187
01/06/2025, 10:20 AMsamuele794
01/23/2025, 11:45 AMkover {
reports {
filters {
excludes {
packages("org.koin.ksp.generated", "com.takaotech.dashboard.di")
}
}
verify {
// verification rules for all reports
}
}
}
with koverHtmlReport packages are excluded corretly,
but with koverBinaryReport and import ic file (build/kover/bin-reports/test.ic) on IntelliJ i see packages not excluded.juliocbcotta
03/11/2025, 10:55 AMkoverHtmlReport*
task.... crashing in different modules... I tried to find something in the repository, but couldn't find anything relatively new on the issues tracker, but I noticed that in kover 0.9.0 kover started to access jacoco programmatically... which I think that might have had some side effect.
Execution failed for task ':features:user-engagement:countrylist:koverHtmlReportVeepee'.
> A failure occurred while executing kotlinx.kover.gradle.plugin.tools.jacoco.JacocoHtmlReportAction
> Stream closed
Eugen Martynov
04/11/2025, 10:07 AMGenerated
substring in the annotation name. Is it possible to overcome?Rihards
04/16/2025, 8:50 AM