Skip to content

0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 17:15
· 15 commits to main since this release
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