Repository navigation
Releases
Releases · maniramezan/KotlinTestCommons
0.3.0
0.2.0
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.Endentries are now SCREAMING_CASE:Finished→FINISHED,LimitReached→LIMIT_REACHED,Matched→MATCHED,TimedOut→TIMED_OUT.ReadingDirectionentries:LeftToRight→LEFT_TO_RIGHT,RightToLeft→RIGHT_TO_LEFT.FixtureDirectory.fromResources(owner, directory)now requiresdirectory. The old empty default pointed to the compiled classes folder, not your resources. Pass the resource folder explicitly, for examplefromResources(MyTest::class.java, "fixtures").
compose
- Every wait takes
timeout: Durationinstead oftimeoutMillis: Long. This applies towaitForTag,waitForAnyTag,waitForText,waitForContentDescription,waitUntilDisplayedandwaitUntilGone, on bothComposeUiTestandComposeTestRule. ReplacetimeoutMillis = 10_000withtimeout = 10.seconds. DEFAULT_UI_TIMEOUT_MILLIS→DefaultUiTimeoutandLONG_UI_TIMEOUT_MILLIS→LongUiTimeout. Both are nowDurations.- A negative timeout now throws
IllegalArgumentException. - New:
waitForTextandwaitForContentDescriptionacceptuseUnmergedTree.
device
timeoutMillis: Long→timeout: DurationonwaitForView,waitUntilDisplayed,waitUntilNotDisplayed,UiDevice.uniqueObject,UiDevice.setTextVerifiedandUiDevice.launchPackage.DEFAULT_DEVICE_TIMEOUT_MILLIS→DefaultDeviceTimeout(aDuration).- A negative timeout now throws
IllegalArgumentException. UiDevice.isKeyboardVisible()gained an optionaluiAutomationparameter. 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
What's Changed
- feat: harden test helpers and add runnable sample apps by @maniramezan in #2
New Contributors
- @maniramezan made their first contribution in #2
Full Changelog: https://github.com/maniramezan/KotlinTestCommons/commits/0.1.0