Skip to content

News

2.4.0 • Conditionally ignore tests and better stack traces for fixtures

Suite

  • Exceptions in fixtures are wrapped by an AssertionError to facilitate understanding the failure path (!205)
  • Added Ignored.If and OnlyIf to conditionally ignore tests (!206)

Gradle compatibility

  • Fixed a bug in gradle.properties() (!209)

KotlinX.Datetime compatibility

The :compat-kotlinx-datetime module has been deleted. All its functionality has already been moved to :suite using the kotlin.time package multiple releases ago.

The module is still available on MavenCentral but will not be updated in the future.

2.3.1 • Kotlin 2.3.0, Gradle properties and longer default timeout

Suite

  • Increased the default test timeout from 10s to 60s (!192)

Gradle compatibility

  • Added a helper to write gradle.properties in tests (!197)

TestBalloon runner

Added support for TestBalloon 0.8.2.

Note that TestBalloon 0.8.0 had a breaking change, so this version of Prepared is not compatible with older TestBalloon versions. Your codebase should not be affected.

Kotest runner

Added support for Kotest 6.1.3.

Note that Kotest 6.0.2 had a breaking change that was later rolled back, so this version of Prepared is not compatible with Kotest 6.0.2. Your codebase should not be affected.

Dependencies

  • Kotlin 2.3.0

2.2.0 • Improved test logging, Kotest 6 and TestBalloon 0.7.1

Suite

  • Prepared and shared values now log how long they took to initialize (!177)
  • Finalizers run even when the test is cancelled (e.g. because of a timeout, !177)
  • Added the 'log' function to display information about an intermediate value (16df295b, !180)

Kotest runner

  • Kotest 6.0.4 support. Note that the Kotest configuration has changed, it now requires configuring KSP (ac719a00)
  • Added support for WASI
  • Removed workaround for Kotest#4077 (#59, !185)

TestBallooon runner

  • TestBalloon 0.7.1 support
  • Force the dependency on the Kotlin-test library. This may help when TestBalloon doesn't release new versions for new versions of Kotlin (6fbce77c)

Dependencies

  • Kotlin 2.2.20

2.1.2 • DebugProbes, TestBalloon IntelliJ plugin and JDK 11+ for all runners

Suite

  • On the JVM, coroutine DebugProbes are enabled automatically to log ongoing coroutines at the end of a test (#45, #87, !172)
  • Added the @TestEntrypoint annotation (72ea802d)

TestBalloon runner

  • The default timeout is now 10s instead of 1m, like the other runners (e17b8ad2)
  • Now compatible with JDK 11+ (previously 17+, 614e9963)

Documentation

  • Added more features to the highlight section of the home page (e4bb5f82)
  • Simplified the Atrium description (bbe1c05d)
  • Added an explanation to configure the IntelliJ TestBalloon plugin (5c8b653b)

2.1.0 • checkThrows and stable resource management

Suite

  • Warn users that exceptions are printed after finalizers (#81, !150)
  • Added String.matches(String) for easier regex matching (a9cb1224, !160)
  • Added checkThrows (5e1653e1, !160)

Compat: Parameterize

  • Support Wasm (!145)
  • Support Parameterize 0.4.0 (Beware: possible binary incompatibilities, !152)

Compat: Arrow

  • Support WasmJS (!159)
  • Renamed assertRaises and assertRaisesWith to checkRaises (d06de70f, !160)

Compat: KotlinX.Datetime

  • Deprecated the module (!148)

Compat: Filesystem

  • Stabilized the resource management APIs (#66, !157)

Documentation

  • Added copyright headers (!146)

Dependencies

  • Kotlin 2.2.0
  • Kotest 6.0.0.M4
  • TestBalloon 0.4.0

2.0.6 • Migration to TestBalloon, WASI support

Suite

  • Added support for Wasm WASI when running with TestBalloon (!143)

Runner: TestBalloon

  • Support all OpenSavvy-supported platforms (!143)
  • All modules are now tested with this runner instead of the Kotest runner (!143)

Compat: Arrow

  • Removed the @ExperimentalTraceApi on assertRaisesWith methods (!142)

Dependencies

  • Kotlin 2.1.21
  • KotlinX.Coroutines 1.10.2
  • KotlinX.Datetime 0.6.2
  • Arrow 2.1.2
  • Gradle TestKit 8.11.1
  • Ktor 3.1.3
  • TestBalloon 0.3.3