mmodzelewski commented on code in PR #2623:
URL: https://github.com/apache/iggy/pull/2623#discussion_r2777498821
##########
foreign/java/build.gradle.kts:
##########
@@ -103,3 +108,37 @@ subprojects {
}
}
}
+
+tasks.register<JacocoReport>("jacocoAggregatedReport") {
+ description = "Generates aggregated code coverage report for all modules"
+ group = "verification"
+
+ dependsOn(subprojects.map { it.tasks.named("test") })
+
+ // Aggregate execution data from all subprojects
+ executionData.setFrom(files(subprojects.mapNotNull {
+ val testTask = it.tasks.findByName("test") as? Test
Review Comment:
instead of casting you could use something like `it.tasks.withType<Test>()`
which is available in gradle kts
##########
.codecov.yml:
##########
Review Comment:
This seems to be duplicating the `codecov.yml` that is already in the
repository. Please update the other file and remove this one.
##########
foreign/java/build.gradle.kts:
##########
@@ -21,6 +21,11 @@ import com.diffplug.gradle.spotless.SpotlessExtension
plugins {
alias(libs.plugins.spotless) apply false
+ jacoco
Review Comment:
Can you add jacoco like spotless with specific version?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]