Kotest extension for Arrow.
See docs.
Please create issues on the main kotest board.
depedencies {
implementation("io.kotest.extensions:kotest-assertions-arrow:<version>")
implementation("io.kotest.extensions:kotest-assertions-arrow-fx-coroutines:<version>")
}
for property-based testing:
dependencies {
implementation("io.kotest.extensions:kotest-property-arrow:<version>")
// optional: the following includes optics related Laws
implementation("io.kotest.extensions:kotest-property-arrow-optics:<version>")
}
to depend on snapshot releases add the snapshot repository url:
repositories {
//...
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
Note:
Please add io.arrow-kt:arrow-core:arrow-version
, io.arrow-kt:arrow-fx-coroutines:arrow-version
or io.arrow-kt:arrow-optics:arrow-version
, if they're missing in your classpath.
Otherwise, it will lead to unresolved Reference errors.
In the form of: "Cannot access class arrow.core.Either
Check your module classpath for missing or conflicting dependencies."
The project is not shipping the arrow jars because this leads to dependency conflicts and further adjusting the dependency graph.
- Release for Kotlin 2.1.0 and Arrow 2.0
- Release for Kotlin 1.8 and Kotest 5.7 and Arrow 1.2
- Release for arrow 1.1.5
- Release for arrow 1.1.4
- Added
Ior
matchers.
- Update to kotest 5.5.4
- Add assertion module for arrow-fx-coroutines with combinators related to
Resource
andExitCase
- Add
Either.rethrow
- Upgrade to 5.2.3 and update kotlinx-coroutines to 1.6.1
- Upgrade to 5.2.1 and restores compatibilty with 5.2.X series #149
- fix linking error in native platforms #140
- update kotest to 5.1.0
- update kotlin to 1.6.10
- publish missing multiplatform targets affecting
1.2.1
and1.2.0
- Added Arb.valid and Arb.invalid
- Added Arb.nel(arb, range) - a variant of Arb.nel(arb) that accepts a range parameter
- Upgrade to Arrow 1.0.1
- Multiplatform artifacts for
kotest-assertions-arrow
,kotest-property-arrow
andkotest-property-arrow-optics
#2670
Replace explicit usage of eq with should be from kotest assertion coretestLaws
hasRootScope
as a receiver instead ofRootContext
- removes deprecated members in
kotest-assertions-arrow
Note that from this release, the minimium requirements are Kotest 5.0+ and Kotlin 1.6
- Update to Arrow 1.0.0
- fix Java 1.8 compatibility #2437
- Added
kotest-property-arrow
andkotest-property-arrow-optics
for property-based testing with Arrow - includes deprecation cycle of 1.0.3
- remove dependency to kotlinX-coroutines and kotest-property in
kotest-assertions-arrow
- Update to Arrow 0.13.2
- Added a deprecation cycle for previous descriptors in 1.0.2 in favor of smart-casted variants in
io.kotest.assertions.arrow.core
- Reorg existing functions to
io.kotest.assertions.arrow.core
- Not leaking the arrow dependency into the runtime of users
- Added Arb<Either<A, B>, Arb<Validated<E, A>>
- Updated to arrow 0.13.1
- Updated option to support nullables