Skip to content

Commit

Permalink
Replace truth by kotest
Browse files Browse the repository at this point in the history
  • Loading branch information
pgreze committed Feb 6, 2024
1 parent 54abe79 commit 35f5e25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ subprojects {
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("com.google.truth:truth:_")
testImplementation("io.kotest:kotest-assertions-core:_")
}
}
}
5 changes: 2 additions & 3 deletions idea/src/test/kotlin/com/github/pgreze/aidea/idea/IdeaTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.pgreze.aidea.idea

import com.google.common.truth.Truth.assertThat
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test

class IdeaTest {
Expand All @@ -10,7 +10,6 @@ class IdeaTest {
val copyright = "Copyright JetBrains s.r.o., (c) 2000-2022"
val string = " <string>$infoString. $copyright</string>"

assertThat(string.extractInfoString())
.isEqualTo(infoString)
string.extractInfoString() shouldBe infoString
}
}
9 changes: 2 additions & 7 deletions versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ version.com.github.ajalt.clikt..clikt=4.2.2

version.com.github.pgreze..kotlin-process=1.4.1

version.com.google.truth..truth=1.1.3
## # available=1.1.4
## # available=1.1.5
## # available=1.2.0
## # available=1.3.0
## # available=1.4.0

version.junit=5.10.2

version.kotest=5.8.0

version.kotlin=1.9.22

version.kotlinx.coroutines=1.7.3

0 comments on commit 35f5e25

Please sign in to comment.