Skip to content

Commit

Permalink
Fix unit tests (update kotest)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 committed Sep 8, 2020
1 parent c4bf7a7 commit cc20fb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
15 changes: 4 additions & 11 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ object Dependencies {
const val lifecycleExtensions = "2.2.0"

// Testing
const val junit = "4.13"
const val junit5 = "5.6.1"
const val kotest = "4.0.5"
const val junit = "5.6.1"
const val kotest = "4.2.2"
const val mockk = "1.10.0"
const val sharedPreferencesMock = "1.0"
const val androidXRunner = "1.2.0"
const val androidXEspresso = "3.2.0"

// Debug
const val leakCanary = "2.4"
Expand Down Expand Up @@ -58,18 +55,14 @@ object Dependencies {
* Includes logging, debugging, and testing
*/
object Testing {
const val junit = "junit:junit:${Versions.junit}"
const val junit5 = "org.junit.jupiter:junit-jupiter-api:${Versions.junit5}"
const val junit5Engine = "org.junit.jupiter:junit-jupiter-engine:${Versions.junit5}"
const val junit = "org.junit.jupiter:junit-jupiter-api:${Versions.junit}"
const val junitEngine = "org.junit.jupiter:junit-jupiter-engine:${Versions.junit}"
const val kotestAssertions = "io.kotest:kotest-assertions-core-jvm:${Versions.kotest}"
const val kotestProperty = "io.kotest:kotest-property-jvm:${Versions.kotest}"
const val kotestRunner = "io.kotest:kotest-runner-junit5-jvm:${Versions.kotest}"
const val mockk = "io.mockk:mockk:${Versions.mockk}"
const val sharedPreferencesMock =
"com.github.IvanShafran:shared-preferences-mock:${Versions.sharedPreferencesMock}"
const val androidXRunner = "androidx.test:runner:${Versions.androidXRunner}"
const val androidXEspresso =
"androidx.test.espresso:espresso-core:${Versions.androidXEspresso}"

// Debug
const val leakCanary = "com.squareup.leakcanary:leakcanary-android:${Versions.leakCanary}"
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ dependencies {
implementation(Dependencies.UI.recyclerView)

// Testing
testImplementation(Dependencies.Testing.junit5)
testRuntimeOnly(Dependencies.Testing.junit5Engine)
testImplementation(Dependencies.Testing.junit)
testRuntimeOnly(Dependencies.Testing.junitEngine)
testImplementation(Dependencies.Testing.kotestAssertions)
testImplementation(Dependencies.Testing.kotestProperty)
testImplementation(Dependencies.Testing.kotestRunner)
Expand Down

0 comments on commit cc20fb7

Please sign in to comment.