Skip to content

2024-06-24

Choose a tag to compare

@github-actions github-actions released this 24 Jun 21:37
· 81 commits to main since this release

Core 1.6.0: Core Core-ktx 1.6.0

June 24, 2024

androidx.test:core:1.6.0 and androidx.test:core-ktx:1.6.0 are released.

Changes since last stable release 1.5.0 include:

API Changes

  • Added ApplicationInfoBuilder.setFlags(int)
  • Add new lower level screenshot APIs View.captureToBitmap, WindowCapture.captureToBitmap, Bitmap.writeToTestStorage and DeviceCapture.takeScreenshot screenshots.

Bug Fixes

  • Remove unused androidx.test.annotation dependency
  • Fix using ActivityScenario#launchActivityForResult with an implicit Intent
  • Update Activity Scenario reference documentation to fix missing links
  • Remove all support for Android SDKs < 19. Minimum is API 19 (Android Kit Kat 4.4)
  • Reference doc cleanup - document previously missing parameters, fix links, etc
  • Activity starts are automatically opted in to allow background activity launches when targetSdk >= 34
  • Fix issue where Activity#isChangingConfigurations is incorrectly false during ActivityScenario#recreate

New Features

  • Artifacts are now signed. See verify dependencies for more details.
  • Major release toolchain update: now compiled to java8 bytecode

Espresso 3.6.0: Espresso 3.6.0

June 24, 2024

The following artifacts were released:

  • androidx.test.espresso:espresso-accessibility:3.6.0
  • androidx.test.espresso:espresso-core:3.6.0
  • androidx.test.espresso:espresso-contrib:3.6.0
  • androidx.test.espresso:espresso-idling-resource:3.6.0
  • androidx.test.espresso:espresso-intents:3.6.0
  • androidx.test.espresso:espresso-remote:3.6.0
  • androidx.test.espresso:espresso-web:3.6.0
  • androidx.test.espresso.idling:idling-concurrent:3.6.0
  • androidx.test.espresso.idling:idling-net:3.6.0

Changes since last stable release 3.5.1 include:

Bug Fixes

  • Remove unused androidx.test.annotation dependency
  • Fix slow inRoot operations in Robolectric
  • Use PlatformTestStorageRegistry.getInstance consistently instead of passing a reference around
  • Remove TODO from InteractionResponse public ref docs
  • Fix typo in AdapterDataLoaderAction error message
  • Replace use of guava with Java collections and inlining
  • Reference doc cleanup - document previously missing parameters, fix links, etc
  • Remove all support for Android SDKs < 19. Minimum is API 19 (Android Kit Kat 4.4)
  • Stop posting empty tasks to background threads when running in non-remote mode
  • Better handle exceptions that may occur in DefaultFailureHandler's hierarchy capture and screenshot process.
  • Fix the description of IsPlatformPopup to match the behavior.
  • Fix deprecated obtainMovement impl that used the wrong coordinates.
  • Replace broken links to junit.org javadoc with @link.

API Changes

  • Add ViewActions.captureToBitmap
  • Add waitForClose to DrawerActions.
  • Mark generated IInteractionExecutionStatus class as RestrictTo LIBRARY_GROUP
  • Remove ExperimentalTestApi from RuntimePermissionStubber
  • Adding a new IsActivatedMatcher to verify if it is activated or not.
  • Makes Espresso.onIdle() work on the main thread to allow for draining the main thread from the main thread.
  • minSdkVersion is now 19, targetSdkVersion is now 34
  • Add scrollTo variant that allows scrolling to 90+% displayed views
  • Deprecate EspressoOptional in favor of @nullable.
  • Allow customizing espresso's default failure handler to disable screenshots on failures

New Features

  • Artifacts are now signed. See verify dependencies for more details.
  • Major release toolchain update:
    • classes are now compiled to java8 bytecode
    • javac compiler switched to OpenJDK 17. This should resolve IncompatibleClassChangeErrors (https://github.com/android/android-test/issues/1642)
    • remove internal guava usage, which resulted in a binary size reduction
    • release aars are no longer proguarded

Test:

Test:

Test:

Monitor 1.7.0: monitor 1.7.0

June 24, 2024

androidx.test:monitor:1.7.0 is released.

Changes since last stable release 1.6.1 include:

API Changes

  • Make DeviceController a public API
  • Move PlatformTestStorage to a public API
  • Add internal ControlledLooper#isDrawCallbacksSupported.
  • Remove all support for Android SDKs < 19. Minimum is API 19 (Android Kit Kat 4.4)
  • minSdkVersion is now 19, targetSdkVersion is now 34

Bug Fixes

  • Remove unused androidx.test.annotation dependency
  • Fix synchronization in IntentMonitorImpl callbacks

New Features

  • Artifacts are now signed. See verify dependencies for more details.
  • Major release toolchain update: now compiled to java8 bytecode

Known issues

  • monitor has a dependency on androidx.tracing:1.1.0. Depending on configuration, gradle may downgrade this to 1.0.0 at runtime causing 'No static method forceEnableAppTracing' errors. As a workaround, add an explicit 'implementation androidx.tracing:1.1.0' dependency. See https://github.com/android/android-test/issues/1755

Orchestrator 1.5.0: orchestrator 1.5.0

June 24, 2024

androidx.test:orchestrator:1.5.0 is released.

Changes since last stable release 1.4.2 include:

New Features

  • Introduce Instrumentation Params Proxying which allows the user to proxy instrumentation arguments to the APK under test (eg: --no-hidden-api-checks).
  • Major release toolchain update. APK is now signed with a different key and you will need to uninstal any previous orchestrator ('adb uninstall androidx.test.orchestrator')

API Changes

  • minSdkVersion is now 19

Bug Fixes

  • Fix crash when test name is too long

Runner 1.6.0: runner 1.6.0

June 24, 2024

androidx.test:runner:1.6.0 is released.

Changes since last stable release 1.5.2 include:

API Changes

  • Mark androidx.test.services.** as RestrictTo LIBRARY_GROUP
  • Add CustomFilter API
  • Add PackagePrefixClasspathSuite API
  • Mark PermissionRequester as RestrictTo LIBRARY_GROUP instead of ExperimentalTestApi
  • minSdkVersion is now 19

Bug Fixes

  • Remove unused androidx.test.annotation dependency
  • When logging test exceptions, use Log's built-in support for throwables to avoid stack truncation
  • Internal changes to support GrantPermissionRule using UiAutomation#grantRuntimePermissions
  • Attempt to clarify limitations and deprecation reasons in RequiresDevice documentation
  • Remove all support for Android SDKs < 19. Minimum is API 19 (Android Kit Kat 4.4)
  • Fix that "-e class" and "-e notClass" on the same class/method should perform the same result (no tests run)
  • TestDiscoveryEventServiceConnection.send() will correctly fail the test instead of hanging if the instrumentation throws a RuntimeException.
  • Stop reparsing all args for every AndroidJUnit4 test class. This should address initialization errors like in #1948.
  • Force initialization of instrumentationRunListener, to prevent NPEs when instrumenting system server process.
  • Attempt to avoid outputting a test result summary which exceeds binder transaction limit.
  • Wait up to 2 seconds for activity finisher to run, to prevent situations where it finishes activities mid-test
  • Improve error reporting when there is a junit class mismatch due to a custom classloader
  • Fix reporting in logOnly mode for @Ignore-d classes
  • Move instantiation of InstrumentationResultPrinter to after multidex is loaded
  • Register TestStorage before using it in RunnerArgs parsing
  • Execute test classes in order provided to TestRequestBuilder.

New Features

  • Artifacts are now signed. See verify dependencies for more details.
  • Major release toolchain update:
    • classes are now compiled to java8 bytecode
    • javac compiler switched to OpenJDK 17.

Rules 1.6.0: rules 1.6.0

June 24, 2024

androidx.test:rules:1.6.0 is released.

Changes since last stable release 1.5.0 include:

API Changes

  • minSdkVersion is now 19, targetSdkVersion is now 34
  • Recommend use of UiAutomation#grantRuntimePermissions instead of GrantPermissionRule

Bug Fixes

  • Replace broken links to junit.org javadoc with @link.
  • Make GrantPermissionRule use UiAutomation to grant permissions on APIs > =28 to fix issues running on automotive.

New Features

  • Artifacts are now signed. See verify dependencies for more details.
  • Major release toolchain update:
    • classes are now compiled to java8 bytecode
    • javac compiler switched to OpenJDK 17.

Services 1.5.0: services 1.5.0

June 24, 2024

androidx.test.services:test-services:1.5.0 androidx.test.services:storage:1.5.0 are released.

Changes since last stable 1.4.2 release include:

API Changes

  • Make TestStorage an internal API from experimental
  • minSdkVersion is now 19, targetSdkVersion is now 34

Bug Fixes

  • Reduce HostedFile log spam
  • Remove unused androidx.test.annotation dependency
  • TestStorage: use local cache dir to store output files when running as non system user
  • When files are opened for writing, TestStorage now truncates the file unless it is explicitly opened for appending. This prevents bytes from a prior write to the file from remaining at the end of the file.
  • Remove all support for Android SDKs < 19. Minimum is API 19 (Android Kit Kat 4.4)

New Features

  • Major release toolchain update:
    • classes are now compiled to java8 bytecode
    • javac compiler switched to OpenJDK 17.
    • APK is now signed with a different key and you will need to uninstall any previous APK ('adb uninstall androidx.test.services')