Skip to content

Commit

Permalink
Refactor: Use Kotlin-test runtime for arrow-fx-stm tests (#3224)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Serrano <[email protected]>
  • Loading branch information
molikuner and serras authored Oct 25, 2023
1 parent 281d397 commit e75d31e
Show file tree
Hide file tree
Showing 8 changed files with 679 additions and 627 deletions.
25 changes: 6 additions & 19 deletions arrow-libs/fx/arrow-fx-stm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.publish)
alias(libs.plugins.kotlinx.kover)
alias(libs.plugins.kotest.multiplatform)
alias(libs.plugins.spotless)
}

Expand All @@ -22,33 +21,17 @@ kotlin {
commonMain {
dependencies {
api(projects.arrowCore)
compileOnly(libs.kotlin.stdlibCommon)
implementation(libs.coroutines.core)
}
}

commonTest {
dependencies {
implementation(projects.arrowFxCoroutines)
implementation(libs.kotest.frameworkEngine)
implementation(libs.kotest.assertionsCore)
implementation(libs.kotest.property)
}
}
jvmTest {
dependencies {
runtimeOnly(libs.kotest.runnerJUnit5)
}
}

jvmMain {
dependencies {
implementation(libs.kotlin.stdlib)
}
}
jsMain {
dependencies {
implementation(libs.kotlin.stdlibJS)
implementation(libs.kotlin.test)
implementation(libs.coroutines.test)
}
}
}
Expand All @@ -61,3 +44,7 @@ kotlin {
}
}
}

tasks.withType<Test> {
useJUnitPlatform()
}

This file was deleted.

Loading

0 comments on commit e75d31e

Please sign in to comment.