Skip to content

Releases

0.3.0

Choose a tag to compare

@maniramezan maniramezan released this 18 Nov 06:26
3ffe54e

0.3.0 (2026-11-18)

Features

  • add macOS, JS, and Wasm targets to core and coroutines (#18) (aef48da)
  • core: let TemporaryDirectory be closed with use (#14) (4f898e8)

Bug Fixes

  • device: verify setTextVerified against a fresh field so it works on API 26 (#17) (280bfc1)

Performance Improvements

  • device: read only the requested package's windows and stop index matching early (#13) (3543627)

0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 17:15
e62634c

Migrating from 0.1.0

0.2.0 settles the public API (#6). Most changes are source-level renames; recompile against 0.2.0 rather than mixing it with binaries built against 0.1.0.

core

  • FlowObservation.End entries are now SCREAMING_CASE: Finished → FINISHED, LimitReached → LIMIT_REACHED, Matched → MATCHED, TimedOut → TIMED_OUT.
  • ReadingDirection entries: LeftToRight → LEFT_TO_RIGHT, RightToLeft → RIGHT_TO_LEFT.
  • FixtureDirectory.fromResources(owner, directory) now requires directory. The old empty default pointed to the compiled classes folder, not your resources. Pass the resource folder explicitly, for example fromResources(MyTest::class.java, "fixtures").

compose

  • Every wait takes timeout: Duration instead of timeoutMillis: Long. This applies to waitForTag, waitForAnyTag, waitForText, waitForContentDescription, waitUntilDisplayed and waitUntilGone, on both ComposeUiTest and ComposeTestRule. Replace timeoutMillis = 10_000 with timeout = 10.seconds.
  • DEFAULT_UI_TIMEOUT_MILLIS → DefaultUiTimeout and LONG_UI_TIMEOUT_MILLIS → LongUiTimeout. Both are now Durations.
  • A negative timeout now throws IllegalArgumentException.
  • New: waitForText and waitForContentDescription accept useUnmergedTree.

device

  • timeoutMillis: Long → timeout: Duration on waitForView, waitUntilDisplayed, waitUntilNotDisplayed, UiDevice.uniqueObject, UiDevice.setTextVerified and UiDevice.launchPackage.
  • DEFAULT_DEVICE_TIMEOUT_MILLIS → DefaultDeviceTimeout (a Duration).
  • A negative timeout now throws IllegalArgumentException.
  • UiDevice.isKeyboardVisible() gained an optional uiAutomation parameter. Source-compatible, but it needs a recompile.

New in 0.2.0: the coroutines artifact (MainDispatcherFixture, runTestWithMain) for swapping Dispatchers.Main from shared commonTest code (#7).

What's Changed

  • fix(compose): reject unusable bounds in overlap assertions by @maniramezan in #3
  • build: gate releases on reviewed Maven consumers by @maniramezan in #4
  • build: batch every Dependabot update into one weekly PR by @maniramezan in #5
  • feat!: settle the public API before the first release by @maniramezan in #6
  • feat: add a coroutines artifact and make device checks cheaper by @maniramezan in #7

Full Changelog: 0.1.0...0.2.0

0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 00:54
738ab2f

What's Changed

  • feat: harden test helpers and add runnable sample apps by @maniramezan in #2

New Contributors

Full Changelog: https://github.com/maniramezan/KotlinTestCommons/commits/0.1.0