chore: koverの修正

This commit is contained in:
usbharu 2024-05-18 16:18:54 +09:00
parent b9da734298
commit 610ecd121a
2 changed files with 32 additions and 27 deletions

View File

@ -244,7 +244,7 @@ jobs:
uses: madrapps/jacoco-report@v1.6.1 uses: madrapps/jacoco-report@v1.6.1
with: with:
paths: | paths: |
${{ github.workspace }}/build/reports/kover/report.xml ${{ github.workspace }}/hideout-core/build/reports/kover/report.xml
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage title: Code Coverage
update-comment: true update-comment: true

View File

@ -31,12 +31,12 @@ version = "0.0.1"
sourceSets { sourceSets {
create("intTest") { create("intTest") {
compileClasspath += sourceSets.main.get().output compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output runtimeClasspath += sourceSets.main.get().output
} }
create("e2eTest") { create("e2eTest") {
compileClasspath += sourceSets.main.get().output compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output runtimeClasspath += sourceSets.main.get().output
} }
} }
@ -304,29 +304,34 @@ project.gradle.taskGraph.whenReady {
} }
kover { kover {
excludeSourceSets { currentProject {
names("aot", "e2eTest", "intTest") sources {
} excludedSourceSets.addAll(
} "aot", "e2eTest", "intTest"
)
koverReport { }
filters { }
excludes {
packages( reports {
"dev.usbharu.hideout.activitypub.domain.exception", filters {
"dev.usbharu.hideout.core.domain.exception", excludes {
"dev.usbharu.hideout.core.domain.exception.media", packages(
"dev.usbharu.hideout.core.domain.exception.resource", "dev.usbharu.hideout.activitypub.domain.exception",
"dev.usbharu.hideout.core.domain.exception.resource.local" "dev.usbharu.hideout.core.domain.exception",
) "dev.usbharu.hideout.core.domain.exception.media",
annotatedBy("org.springframework.context.annotation.Configuration") "dev.usbharu.hideout.core.domain.exception.resource",
annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties") "dev.usbharu.hideout.core.domain.exception.resource.local"
packages( )
"dev.usbharu.hideout.controller.mastodon.generated", annotatedBy("org.springframework.context.annotation.Configuration")
"dev.usbharu.hideout.domain.mastodon.model.generated" annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties")
) packages(
packages("org.springframework") "dev.usbharu.hideout.controller.mastodon.generated",
packages("org.jetbrains") "dev.usbharu.hideout.domain.mastodon.model.generated"
)
packages("org.springframework")
packages("org.jetbrains")
}
} }
} }
} }