mirror of
https://github.com/jlengrand/atrium.git
synced 2026-03-10 08:01:19 +00:00
document kotlin 1.3 extension requires dep on domain-robstoll-kotlin_1_3
And use isSuccess in SmokeSpec (revealed that the current documentation is not good enough).
This commit is contained in:
@@ -112,6 +112,7 @@ You can enable them as follows:
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-jdk8:$atrium_version"
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3:$atrium_version"
|
||||
testRuntimeOnly "ch.tutteli.atrium:atrium-domain-robstoll-kotlin_1_3:$atrium_version"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -202,6 +203,7 @@ You can enable them as follows:
|
||||
```
|
||||
dependencies {
|
||||
testImplementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-kotlin_1_3-js:$atrium_version"
|
||||
testRuntimeOnly "ch.tutteli.atrium:atrium-domain-robstoll-kotlin_1_3-js:$atrium_version"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -7,4 +7,5 @@ dependencies {
|
||||
//I don't see how to set up compileTestKotlin with --patch-module, so we have put the module-info.java directly in src/test/kotlin instead
|
||||
testImplementation prefixedProject('fluent-en_GB-jvm')
|
||||
testImplementation prefixedProject('api-fluent-en_GB-kotlin_1_3-jvm')
|
||||
testRuntimeOnly prefixedProject('domain-robstoll-kotlin_1_3-jvm')
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
@file:Suppress("JAVA_MODULE_DOES_NOT_READ_UNNAMED_MODULE" /* TODO remove once https://youtrack.jetbrains.com/issue/KT-35343 is fixed */)
|
||||
|
||||
package custom
|
||||
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.kotlin_1_3.isSuccess
|
||||
import ch.tutteli.atrium.api.fluent.en_GB.toBe
|
||||
import ch.tutteli.atrium.api.verbs.expect
|
||||
import ch.tutteli.atrium.assertions.Assertion
|
||||
@@ -9,7 +12,6 @@ import ch.tutteli.atrium.reporting.RawString
|
||||
import ch.tutteli.atrium.reporting.translating.StringBasedTranslatable
|
||||
import ch.tutteli.atrium.translations.DescriptionBasic
|
||||
import org.spekframework.spek2.Spek
|
||||
import org.spekframework.spek2.style.specification.describe
|
||||
|
||||
object SmokeSpec : Spek({
|
||||
test("see if `toBe` can be used") {
|
||||
@@ -17,8 +19,7 @@ object SmokeSpec : Spek({
|
||||
}
|
||||
|
||||
test("see if `Result.isSuccess` can be used") {
|
||||
//TODO activate after isSuccess is implemented
|
||||
//expect(Result.success(1)).isSuccess { toBe(1) }
|
||||
expect(Result.success(1)).isSuccess { toBe(1) }
|
||||
}
|
||||
|
||||
test("see if own assertion function without i18n can be used") {
|
||||
|
||||
Reference in New Issue
Block a user