Skip to content

Releases: android/android-test

AndroidX Test Alpha Oct 4 2021

05 Oct 18:04
Compare
Choose a tag to compare
Pre-release

October 4, 2021

This is an alpha release of several AndroidX Test libraries.

The primary change in this release is new experimental image capturing/screenshot APIs. Please give them a try and give us feedback!

See https://developer.android.com/jetpack/androidx/versions/alpha-channel#october_4_2021

AndroidX Test 08.23.21

23 Aug 18:02
Compare
Choose a tag to compare
Pre-release

Aug 23, 2021

This is an alpha release of several AndroidX Test libraries

See https://developer.android.com/jetpack/androidx/releases/test for release notes

Android X Test 1.4.0-beta01/Espresso 3.4.0-beta01

17 May 19:17
Compare
Choose a tag to compare

May 17, 2021

This is the beta release of AndroidX Test 1.4.0. APIs are not expected to change.
It contains updates to the following libraries:

  • Core 1.4.0-beta01
  • Espresso 3.4.0-beta01
  • Intents 3.4.0-beta01
  • JUnit 1.1.3-beta01
  • Monitor 1.4.0-beta01
  • Orchestrator 1.4.0-beta01
  • Runner 1.4.0-beta01
  • Rules 1.4.0-beta01
  • Truth 1.4.0-beta01
  • Test Services 1.4.0-beta01

Here is a summary of the changes since the 1.4.0-alpha06 release:

New API cleanup

  • Remove InstrumentationProvider
  • Undeprecate BoundedMatcher
  • Restore CursorMatcher to inherit from BoundedMatcher

AndroidX Test 1.4.0-alpha06

29 Apr 19:43
Compare
Choose a tag to compare
Pre-release

April 29, 2021

This is the alpha release of AndroidX Test 1.4.0. New APIs are subject to change.
It contains updates to the following libraries:

  • Core 1.4.0-alpha06
  • Espresso 3.4.0-alpha06
  • Intents 3.4.0-alpha06
  • JUnit 1.1.3-alpha06
  • Monitor 1.4.0-alpha06
  • Orchestrator 1.4.0-alpha06
  • Runner 1.4.0-alpha06
  • Rules 1.4.0-alpha06
  • Truth 1.4.0-alpha06
  • Test Services 1.4.0-alpha06

Here is a summary of the changes since the 1.4.0-alpha05 release:

Bug Fixes

  • Support compiling against SDKS < 29 by removing forceQueryable from manifest [#917]

AndroidX Test 1.4.0-alpha05

15 Mar 19:33
Compare
Choose a tag to compare

March 15, 2021

This is the alpha release of AndroidX Test 1.4.0. New APIs are subject to change.
It contains updates to the following libraries:

Core 1.4.0-alpha05
Espresso 3.4.0-alpha05
Intents 3.4.0-alpha05
JUnit 1.1.3-alpha05
Monitor 1.4.0-alpha05
Orchestrator 1.4.0-alpha05
Runner 1.4.0-alpha05
Rules 1.4.0-alpha05
Truth 1.4.0-alpha05
Test Services 1.4.0-alpha05

Here is a summary of the changes since the 1.4.0-alpha04 release:

API Changes

  • [Truth] Add SparseBooleanArraySubject Truth Subject for making assertions about SparseBooleanArray.

Bug Fixes

  • Add QUERY_ALL_PACKAGES permission to the Android Test Orchestrator and Android Test Services APK to work properly on Android API R+.
  • Add support for classpath scanning test discovery for multidex instrumentation apks on android APIs < 21.

AndroidX Test 1.4.0-alpha04

09 Feb 01:11
Compare
Choose a tag to compare
Pre-release

February 8, 2021

This is the alpha release of AndroidX Test 1.4.0. New APIs are subject to change.
It contains updates to the following libraries:

Core 1.4.0-alpha04
Espresso 3.4.0-alpha04
Intents 3.4.0-alpha04
JUnit 1.1.3-alpha04
Monitor 1.4.0-alpha04
Orchestrator 1.4.0-alpha04
Runner 1.4.0-alpha04
Rules 1.4.0-alpha04
Truth 1.4.0-alpha04
Test Services 1.4.0-alpha04

Here is a summary of the changes since the 1.3.1-alpha03 release:

New Features

  • [Espresso] Improve error messaging for various Espresso assertions
  • [Truth] Several utility methods added to LocationSubject

API Changes

  • Added InstrumentationRegistry.registerInstrumentationProvider

Bug Fixes

  • Remove overly verbose ActivityLifecycleMonitorImpl callback logging.

Dependency Changes

AndroidX Test 1.3.1-alpha03

11 Jan 22:28
Compare
Choose a tag to compare
Pre-release

January 11, 2021

This is the alpha release of AndroidX Test 1.3.1. New APIs are subject to change.
It contains updates to the following libraries:

  • Core 1.3.1-alpha03
  • Espresso 3.4.0-alpha03
  • Intents 3.4.0-alpha03
  • JUnit 1.1.3-alpha03
  • Monitor 1.3.1-alpha03
  • Orchestrator 1.3.1-alpha03
  • Runner 1.3.1-alpha03
  • Rules 1.3.1-alpha03
  • Truth 1.3.1-alpha03
  • Test Services 1.3.1-alpha03

Here is a summary of the changes since the 1.3.1-alpha02 release:

New Features

  • Support using UIThreadTest at the class level

API Changes

Bug Fixes

  • Unregister ActivityResultWaiter in InstrumentationActivityInvoker if it wasn't already unregistered
  • Runner: Reduce TestEventClient 'not primary instr' log message to a warning, as its an expected condition in multi process tests
  • Espresso: Update HasSiblingMatcher to only check siblings (not self).
  • Fix artifact name for espresso.idling.resource [#809]
  • Expose setMasterPolicyTimeoutWhenDebuggerAttached functionality [#814]

Dependency Changes

  • Update espresso.accessibility and espresso.contrib to depend on the androidx-compatible com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1. This release will thus require java8 source/target compatiblity.
    [#492]

AndroidX Test 1.3.1-alpha02

20 Oct 17:52
Compare
Choose a tag to compare
Pre-release

October 20, 2020

This is the alpha release of AndroidX Test 1.3.1. New APIs are subject to change.
It contains updates to the following libraries:

  • Core 1.3.1-alpha02
  • Espresso 3.4.0-alpha02
  • Intents 3.4.0-alpha02
  • JUnit 1.1.3-alpha02
  • Monitor 1.3.1-alpha02
  • Orchestrator 1.3.1-alpha02
  • Runner 1.3.1-alpha02
  • Rules 1.3.1-alpha02
  • Truth 1.3.1-alpha02
  • Test Services 1.3.1-alpha02

Here is a summary of the changes since the 1.3.0 release:

New Features

  • Early look at new Espresso BoundedDiagnosingMatcher base class API that offers better error messaging.

Bug Fixes

  • Fix orchestrator clearPackageData on API 30 [#743]

AndroidX Test 1.3.1-alpha01

15 Oct 19:37
Compare
Choose a tag to compare
Pre-release

October 15, 2020

This is the alpha release of AndroidX Test 1.3.1. New APIs are subject to change.
It contains updates to the following libraries:

  • Core 1.3.1-alpha01
  • Espresso 3.4.0-alpha01
  • Intents 3.4.0-alpha01
  • JUnit 1.1.3-alpha01
  • Monitor 1.3.1-alpha01
  • Orchestrator 1.3.1-alpha01
  • Runner 1.3.1-alpha01
  • Rules 1.3.1-alpha01
  • Truth 1.3.1-alpha01
  • Test Services 1.3.1-alpha01

Here is a summary of the changes since the 1.3.0 release:

New Features

  • Add Espresso ViewMatcher APIs for negative conditions
  • Allow unregistering Loopers from Espresso IdlingRegistry
  • Support specifying junit RunListeners via java.util.ServiceLoader

Bug Fixes

  • Improve handling for large stack traces on test failures [#729, #269]
    • Remove test runner framework related stack frames
    • Truncate stack traces to a max limit of 64KB, to avoid binder limit transaction errors
  • Espresso: Improve error messaging when no activity is present
  • Improve Instrumentation#runOnMainSync exception error handling
  • Add package visibility entries for Orchestrator and Services to fix Orchestator when using targetSdk 30 [#743]
  • Improve documentation for -e timeout_msec and AndroidJUnit4.
  • Send ActivityOptions to BootstrapActivity [#685]
  • Improve ViewMatchers#assertThat error messaging by enabling it to use Matcher.describeMismatch
  • Fix the missing desugar ThrowableExtension errors when using espresso remote [issuetracker.google.com/170228109]
  • Fix espresso web on < Android API 19 by including the androidx.test.espresso.web.bridge classes

AndroidX Test 1.3.0

25 Aug 20:04
Compare
Choose a tag to compare

August 25, 2020

This is the stable release of AndroidX Test 1.3.0.
It contains updates to the following libraries:

  • Core 1.3.0
  • Espresso 3.3.0
  • Intents 3.3.0
  • JUnit 1.1.2
  • Monitor 1.3.0
  • Orchestrator 1.3.0
  • Runner 1.3.0
  • Rules 1.3.0
  • Truth 1.3.0
  • Test Services 1.3.0

There are no changes since 1.3.0-rc03.
Here is a summary of the changes since the 1.2.0 release:

New Features

  • Support filtering by prerelease SDKs via SdkSuppress#codeName
  • Add truth extensions for Location
  • Add truth assertions for Bundle string and parceable arrays.
  • Support ActivityOptions in ActivityScenario
  • Make activity lifecycle transition timeout configurable
  • Handle Activities launched via implicit intents. (Fixes #496)
  • Add a BundleMatchers.isEmpty() and isEmptyOrNull() methods
  • Allow Intents.release without Intents.init
  • Add ViewMatchers.isFocused()

API Changes

  • ActivityTestRule is deprecated in favor of ActivityScenario/ActivityScenarioRule
  • Allow subclasses of ServiceTestRule to customize timeout

Bug Fixes

  • Fix filtering parameterized methods
    • This also fixes running parameterized tests with Orchestrator [#215, https://issuetracker.google.com/119838413]
  • Fix 'runtime permission dialog appears' when running on API 29
  • Skip starting and finish animations for the empty activity used in ActivityScenario. (Fixes #411)
  • Handle Activities launched via implicit intents. (Fixes #496)
  • Make kotlin package names unique, fixing log spam when building with AGP 4.1 [#680]
  • Only delegate to RobolectricTestRunner in AndroidJUnit4 runner if its on the classpath
  • Espresso contrib: Replace usages of RecyclerView.findViewHolderForPosition method with its replacement
  • Fix NoSuchMethodError when testing with AccessibilityChecks enabled (#376)
  • Fix the error message when Espresso is busy due to processing messages rather than idling resources
  • ViewMatchers.isDisplayingAtLeast() works for views with negative scale.
  • Enhance error messaging for WithIdMatcher
  • Remove spurious wait in waitForAtLeastOneActivityToBeResumed.
  • Set correct meta state for ACTION_UP
  • Fix missing missing androidx_test_espresso_contrib_drawer_layout_tag field [#671]
  • Improve class path scanning error handling in AndroidJUnitRunner: Ignore all no class found and linkage errors (Fixes #439)
  • Initialize InstrumentationRegistry before creating RunListeners from RunnerArgs

Dependency Changes

  • Truth: Update to com.google.truth:truth:1.0 and com.google.guava:guava:27.0.1-android