Skip to content

Commit

Permalink
build: aggregate test report
Browse files Browse the repository at this point in the history
Signed-off-by: Kengo TODA <skypencil@gmail.com>
  • Loading branch information
KengoTODA committed Nov 23, 2023
1 parent eeb66e9 commit 48f1cca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan
arguments: build testAggregateTestReport --scan --continue
dependency-graph: generate-and-submit
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
with:
name: build-reports
path: build/reports/
path: backend/build/reports
13 changes: 13 additions & 0 deletions backend/src/test/kotlin/jp/skypencil/kosmo/AlwaysSuccess.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package jp.skypencil.kosmo

import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe

class AlwaysSuccess : DescribeSpec({
describe("kosmo") {
it("uses kotest") {
this.shouldNotBeNull()
}
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("org.jetbrains.kotlin.jvm")
id("com.diffplug.spotless")
id("com.google.devtools.ksp")
id("test-report-aggregation")
}

sourceSets.main {
Expand All @@ -28,11 +29,7 @@ dependencies {
ksp("io.insert-koin:koin-ksp-compiler:$koinKsp")
testImplementation("io.kotest:kotest-assertions-core:$kotest")
testImplementation("io.kotest:kotest-property:$kotest")
testRuntimeOnly("io.kotest:kotest-runner-junit5:$kotest")
}

tasks.named<Test>("test") {
useJUnitPlatform()
testImplementation("io.kotest:kotest-runner-junit5:$kotest")
}

tasks.withType<Test>().configureEach {
Expand Down
3 changes: 0 additions & 3 deletions storage-engine/build.gradle.kts

This file was deleted.

0 comments on commit 48f1cca

Please sign in to comment.