2022-11-02
Annotation 1.0.1: Annotation 1.0.1
November 8, 2022
androidx.test:annotation:1.0.1 is released.
Changes since 1.0.0 include:
Dependency changes
- Update to kotlin stdlib 1.7.10
Runner 1.5.0: runner 1.5.0
November 8, 2022
androidx.test:runner:1.5.0 is released.
Changes since 1.4.0 include:
New features
- Record android Trace spans for test lifecycle events
API changes
- Denote the long standing @Beta/@ExperimentalTestApi androidx.test.runner.screenshot as stable but deprecated (in favor of new androidx.test.core/espresso screenshot APIs)
- Deprecate the '-e timeout' runtime parameter in favor of JUnit's Timeout rule.
- Add an AbstractFilter class.
- Add AndroidClasspathSuite and experimental PackagePrefixClasspathSuite
- No-op and deprecate Google Analytics
Bug fixes
- Add support for reading from TestStorage in -e testFile
- Handle case where app crashes before instrumentationResultPrinter is set.
- Report the process crash immediately in the orchestrator instrumentation listener.
- Support parameterized test names with commas and hashes.
- Improve error handling during test discovery phase in orchestrator
- Enhance error handling in exception scenarios (app crashes, etc)
Dependency Changes
- Update to
- org.junit:junit:4.13.2
Test:
Monitor aka Platform 1.6.0: monitor 1.6.0
November 8, 2022
androidx.test:monitor:1.6.0 is released.
Changes since 1.5.0 include:
API changes
- Internal API changes to support ActivityScenario#launchActivityForResult
- Add internal API for supporting different tracing libraries.
Bug fixes
- Remove 'Activities that are still in CREATED to STOPPED' log spam
Dependency Changes
- Add dependency on androidx.tracing
Espresso 3.5.0: Espresso 3.5.0
November 8, 2022
The following artifacts were released:
androidx.test.espresso:espresso-accessibility:3.5.0androidx.test.espresso:espresso-core:3.5.0androidx.test.espresso:espresso-contrib:3.5.0androidx.test.espresso:espresso-idling-resource:3.5.0androidx.test.espresso:espresso-intents:3.5.0androidx.test.espresso:espresso-remote:3.5.0androidx.test.espresso:espresso-web:3.5.0androidx.test.espresso.idling:idling-concurrent:3.5.0androidx.test.espresso.idling:idling-net:3.5.0
New Features
- Record android Trace spans for Espresso actions
- Espresso's DefaultFailureHandler now saves a screenshot on test failures to TestStorage
- Add experimental ViewInteraction.captureToBitmap extension function
- Save view hierarchy to a file on failures
API changes
- Promote ViewMatchers hasTextColor and hasBackground as stable APIs
- Add IntentsRule
- Add inverted matchers for IntentMatchers.hasExtraWithKey() and BundleMatchers.hasKey()
- Add a ViewAction that scrolls to the last position in a RecyclerView.
- Add IntentMatcher.hasExtra API
Bug fixes
- Preserve tool type on up event
- Make IdlingRegistry more thread-safe.
- Support other views for scrollTo()
- Remove unnecessary
interruptEspressoTaskswarning logs for each Espresso interaction on Robolectric. - Remove timeout in CloseKeyboardAction when running under Robolectric
- Use consistent InputDevice source for input gesture injection
- Support simulating ActivityNotFoundExceptions in Espresso Intents.
- Truncate view hierarchy in exception messages when it gets too large.
- Display number and list of ambiguously matched views.
- Validate that onView.check/perform() is invoked on the UI thread
Dependency changes
- Update to
- kotlin stdlib 1.7.10
- jsr305:2.0.2
- tagsoup:1.2.1
- androidx.annotation:1.2.0
- contrib:
- update to drawer 1.1.1, recycler view 1.2.1, material 1.4.0
Core 1.5.0: Core Core-ktx 1.5.0
November 8, 2022
androidx.test:core:1.5.0 and androidx.test:core-ktx:1.5.0 are released.
Changes since 1.4.0 include:
New features
- Record android Trace spans for ActivityScenario launch and close.
- Add new experimental APIs for screenshots. These APIs will automatically select the highest fidelity for taking screenshots based on platform API level, and support the Automated Test Device (ATD) emulator images.
- View.captureToBitmap extension function
- Window.captureRegionToBitmap extension function
- takeScreenshot()
- Add experimental Bitmap.writeToTestStorage API
API changes
- Add ActivityScenario#launchActivityForResult API and modify ActivityScenario#launch to remove use of Bootstrap Activity API. This change should improve performance and stability of ActivityScenario#launch. ActivityScenario#getResult will now enforce that it can only be used with ActivityScenario#launchActivityForResult
Bug fixes
- Fix ActivityScenario#launch when targeting and running on Android 33
- Use elapsedRealtime instead of currentTimeMillis to track ActivityScenario timeouts.
- Fix ActivityScenario's issue with starting an Activity from intent with package name in self-instrumenting tests.
- Reduce ActivityScenario overhead by using plain whitebackground and disabling transition animations in internal Activities
Dependency changes
- Update to
- kotlin stdlib 1.7.10
- androidx.lifecycle:lifecycle-common:2.3.1
- androidx.annotation:annotation:1.2.0
- Add
- androidx.test.services:storage:1.4.2
- com.google.guava:listenablefuture:1.0
- androidx.concurrent:concurrent-futures:1.1.0
JUnit Extensions 1.1.4: ext.junit 1.1.4
November 8, 2022
androidx.test.ext:junit:1.1.4 and androidx.test.ext:junit-ktx:1.1.4 are released.
Changes since 1.1.3 include:
Dependency changes
- Update to kotlin stdlib 1.7.10
- Update to org.junit:junit:4.13.2
Truth Extensions 1.5.0: ext.truth 1.5.0
November 8, 2022
androidx.test.ext:truth:1.5.0 is released.
Changes since 1.4.0 include:
API changes
- Add BundleSubject#stringArray
- Add ParcelableSubject.marshallsEquallyTo()
- Add BundleSubject#doubleFloat
Bug fixes
- Make Intent matchers fail explicitly for null intent
Dependency Changes
- Update to
- com.google.guava:guava:30.1.1-android
- com.google.truth:truth:1.1.3
Services 1.4.2: services 1.4.2
November 8, 2022
androidx.test.services:test-services:1.4.2 androidx.test.services:storage:1.4.2 are released.
Orchestrator 1.4.2: orchestrator 1.4.2
November 8, 2022
androidx.test:orchestrator:1.4.2 is released.