fix: Test not actually running

This commit is contained in:
Ahmad Ansori Palembani 2024-05-24 09:02:49 +07:00
parent 0c19218ebb
commit 154c715287
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 10 additions and 1 deletions

View file

@ -306,10 +306,18 @@ dependencies {
// Tests
testImplementation(libs.bundles.test)
testRuntimeOnly(libs.bundles.test.runtime)
androidTestImplementation(libs.junit.android)
}
tasks {
withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
// See https://kotlinlang.org/docs/reference/experimental.html#experimental-status-of-experimental-api(-markers)
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(

View file

@ -81,4 +81,5 @@ gradle-versions = { id = "com.github.ben-manes.versions", version = "0.42.0" }
[bundles]
coil = [ "coil3", "coil3-svg", "coil3-gif", "coil3-okhttp" ]
test = [ "junit-api", "junit-engine", "mockk" ]
test = [ "junit-api", "mockk" ]
test-runtime = [ "junit-engine" ]