测试
此表列出了 androidx.test
组中的所有工件。
工件 | 稳定版 | 发布候选版 | Beta 版 | Alpha 版 |
---|---|---|---|---|
annotation | 1.0.1 | - | - | 1.1.0-alpha04 |
core | 1.6.1 | - | - | 1.7.0-alpha03 |
espresso | 3.6.1 | - | - | 3.7.0-alpha04 |
espresso-device | 1.0.1 | - | - | 1.1.0-alpha03 |
ext.junit | 1.2.1 | - | - | 1.3.0-alpha03 |
ext:junit-gtest | - | - | - | 1.0.0-alpha01 |
ext.truth | 1.6.0 | - | - | 1.7.0-alpha03 |
monitor | 1.7.2 | - | - | 1.8.0-alpha03 |
orchestrator | 1.5.1 | - | - | 1.6.0-alpha04 |
runner | 1.6.2 | - | - | 1.7.0-alpha03 |
rules | 1.6.1 | - | - | 1.7.0-alpha03 |
services | 1.5.0 | - | - | 1.6.0-alpha04 |
声明依赖项
要添加对 androidx.test 的依赖项,您必须将 Google Maven 代码库添加到您的项目中。阅读 Google 的 Maven 代码库以获取更多信息。
在应用的 build.gradle
文件或模块中添加您所需工件的依赖项
Groovy
dependencies { // To use the androidx.test.core APIs androidTestImplementation "androidx.test:core:1.6.1" // Kotlin extensions for androidx.test.core androidTestImplementation "androidx.test:core-ktx:1.6.1" // To use the androidx.test.espresso androidTestImplementation "androidx.test.espresso:espresso-core:3.6.1" // To use the JUnit Extension APIs androidTestImplementation "androidx.test.ext:junit:1.2.1" // Kotlin extensions for androidx.test.ext.junit androidTestImplementation "androidx.test.ext:junit-ktx:1.2.1" // To use the Truth Extension APIs androidTestImplementation "androidx.test.ext:truth:1.6.0" // To use the androidx.test.runner APIs androidTestImplementation "androidx.test:runner:1.6.2" // To use android test orchestrator androidTestUtil "androidx.test:orchestrator:1.5.1" }
Kotlin
dependencies { // To use the androidx.test.core APIs androidTestImplementation("androidx.test:core:1.6.1") // Kotlin extensions for androidx.test.core androidTestImplementation("androidx.test:core-ktx:1.6.1") // To use the androidx.test.espresso androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") // To use the JUnit Extension APIs androidTestImplementation("androidx.test.ext:junit:1.2.1") // Kotlin extensions for androidx.test.ext.junit androidTestImplementation("androidx.test.ext:junit-ktx:1.2.1") // To use the Truth Extension APIs androidTestImplementation("androidx.test.ext:truth:1.6.0") // To use the androidx.test.runner APIs androidTestImplementation("androidx.test:runner:1.6.2") // To use android test orchestrator androidTestUtil("androidx.test:orchestrator:1.5.1") }
有关依赖项的更多信息,请参阅添加构建依赖项。
反馈
您的反馈有助于 Jetpack 变得更好。如果您发现新问题或有改进此库的建议,请告诉我们。在创建新问题之前,请查看此库中的现有问题。您可以通过点击星形按钮为现有问题投票。
有关更多信息,请参阅问题跟踪器文档。
Annotation 1.1.0
Annotation 1.1.0-alpha04
2024 年 4 月 26 日
androidx.test:annotation:1.1.0-alpha04}
已发布。
Annotation 1.1.0-alpha03
2024 年 1 月 26 日
androidx.test:annotation:1.1.0-alpha03}
已发布。
API 变更
- 取消隐藏 ExperimentalTestApi
Annotation 1.1.0-alpha02
2023 年 11 月 29 日
androidx.test:annotation:1.1.0-alpha02}
已发布。
API 变更
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
Annotation 1.1.0-alpha01
2023 年 3 月 21 日
androidx.test:annotation:1.1.0-alpha01
已发布。
依赖项变更
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新:现在编译为 Java 8 字节码
Annotation 1.0.1
Annotation 1.0.1
2022 年 11 月 8 日
androidx.test:annotation:1.0.1
已发布。
自 1.0.0 以来的变更包括
依赖项变更
- 更新到 kotlin stdlib 1.7.10
Annotation 1.0.1-rc01
2022 年 10 月 26 日
androidx.test:annotation:1.0.1-rc01
已发布。
Annotation 1.0.1-beta01
2022 年 10 月 6 日
androidx.test:annotation:1.0.1-beta01
已发布。
依赖项变更
- 更新到 kotlin stdlib 1.7.10
Annotation 1.0.1-alpha01
2022 年 6 月 1 日
androidx.test:annotation:1.0.1-alpha01
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
Annotation 1.0.0
Annotation 1.0.0
2021 年 12 月 13 日
androidx.test:annotation:1.0.0
已发布。
新工件,目前供 androidx.test 内部使用。
Annotation 1.0.0-rc01
2021 年 11 月 18 日
androidx.test:annotation:1.0.0-rc01
已发布。
Annotation 1.0.0-beta01
2021 年 11 月 8 日
androidx.test:annotation:1.0.0-beta01
已发布。
Annotation 1.0.0-alpha02
2021 年 10 月 4 日
androidx.test:annotation:1.0.0-alpha02
已发布。
Annotation 1.0.0-alpha01
2021 年 9 月 28 日
androidx.test:annotation:1.0.0-alpha01
已发布。
API 变更
- 添加新的 ExperimentalTestApi 和 InternalTestApi 注解
Core 1.7.0
Core Core-ktx 1.7.0-alpha03
2025 年 4 月 23 日
androidx.test:core:1.7.0-alpha03
和 androidx.test:core-ktx:1.7.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
Core Core-ktx 1.7.0-alpha02
2025 年 3 月 27 日
androidx.test:core:1.7.0-alpha02
和 androidx.test:core-ktx:1.7.0-alpha02
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
- androidx.concurrent futures 1.2.0
- kotlin 2.1.0
- kotlin coroutines 1.10.1
Core Core-ktx 1.7.0-alpha01
2025 年 2 月 3 日
androidx.test:core:1.7.0-alpha01
和 androidx.test:core-ktx:1.7.0-alpha01
已发布。
Bug 修复 * 修复 SDK >= 34 版本中 ViewCapture
对非根视图的 Rect
处理。 * 修复 ViewCapture.generateBitmapFromPixelCopy 中 PixelCopy 失败时状态码报告的错误。 * 改进失败消息的措辞。
API 变更
- 更新到 minSdkVersion 21
Core Core-ktx 1.6.1
2024 年 6 月 26 日
androidx.test:core:1.6.1
和 androidx.test:core-ktx:1.6.1
已发布。
Core Core-ktx 1.6.0
2024 年 6 月 24 日
androidx.test:core:1.6.0
和 androidx.test:core-ktx:1.6.0
已发布。
自上次稳定版 1.5.0 以来的变更包括
API 变更
- 添加了 ApplicationInfoBuilder.setFlags(int)
- 添加了新的低级截图 API:View.captureToBitmap、WindowCapture.captureToBitmap、Bitmap.writeToTestStorage 和 DeviceCapture.takeScreenshot 截图。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
- 修复了将 ActivityScenario#launchActivityForResult 与隐式 Intent 结合使用的问题
- 更新 Activity 场景参考文档以修复缺失链接
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 参考文档清理 - 补充之前缺失的参数、修复链接等
- 当 targetSdk >= 34 时,Activity 启动会自动选择允许后台 Activity 启动
- 修复了 ActivityScenario#recreate 期间 Activity#isChangingConfigurations 错误地为 false 的问题
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新:现在编译为 Java 8 字节码
Core Core-ktx 1.6.0-rc01
2024 年 5 月 30 日
androidx.test:core:1.6.0-rc01
和 androidx.test:core-ktx:1.6.0-rc01
已发布。
Core Core-ktx 1.6.0-beta01
2024 年 5 月 16 日
androidx.test:core:1.6.0-beta01
和 androidx.test:core-ktx:1.6.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
- 回滚到 androidx.concurrent 1.1.0
Core Core-ktx 1.6.0-alpha06
2024 年 4 月 26 日
androidx.test:core:1.6.0-alpha06
和 androidx.test:core-ktx:1.6.0-alpha06
已发布。
Bug 修复
- 使 ViewCapture 使用 ControlledLooper API 而不是硬编码 Robolectric 检查
- 修复了将 ActivityScenario#launchActivityForResult 与隐式 Intent 结合使用的问题
API 变更
- 添加了 ApplicationInfoBuilder.setFlags(int)
- 创建 ViewCapture/WindowCapture/DeviceCapture API 的 suspend 函数版本,
并将现有方法重命名为返回 ListenableFutures 的 *Async 变体 - 使 Bitmap.writeToTestStorage 使用注册的 PlatformTestStorage 而不是硬编码 TestStorage
- 移除 captureToBitmap 和 takeScreenshot API 的 ExperimentalTestApi/RequiresOptIn 限制
Core Core-ktx 1.6.0-alpha05
2024 年 1 月 26 日
androidx.test:core:1.6.0-alpha05
和 androidx.test:core-ktx:1.6.0-alpha05
已发布。
Bug 修复
- 更新 Activity 场景参考文档以修复缺失链接
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 参考文档清理 - 补充之前缺失的参数、修复链接等
Core Core-ktx 1.6.0-alpha04
2023 年 12 月 5 日
androidx.test:core:1.6.0-alpha04
和 androidx.test:core-ktx:1.6.0-alpha04
已发布。
Bug 修复
- 当 targetSdk >= 34 时,Activity 启动会自动选择允许后台 Activity 启动
Core Core-ktx 1.6.0-alpha03
2023 年 11 月 29 日
androidx.test:core:1.6.0-alpha03
和 androidx.test:core-ktx:1.6.0-alpha03
已发布。
Bug 修复
- 修复 targetSdk = 34 时 ActivityScenario.launchActivityWithResult 的问题
API 变更
- targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
Core Core-ktx 1.6.0-alpha02
2023 年 9 月 18 日
androidx.test:core:1.6.0-alpha02
和 androidx.test:core-ktx:1.6.0-alpha02
已发布。
功能 * 更新 ViewCapture 以接受可选的 Rect,使其可与 Compose 配合使用。
Bug 修复
- 修复了 ActivityScenario#recreate 期间 Activity#isChangingConfigurations 错误地为 false 的问题
- 将 UiAutomation#takeScreenshot 调用移出主线程。
- 修复了 API >= 26 时 Dialog 中 View 的 captureToBitmap 问题。
依赖项变更 * minSdkVersion 现在是 19
Core Core-ktx 1.6.0-alpha01
2023 年 3 月 21 日
androidx.test:core:1.6.0-alpha01
和 androidx.test:core-ktx:1.6.0-alpha01
已发布。
功能 * 为 ViewCapture.captureToBitmap 添加了对 Robolectric 的初步支持
Bug 修复
- 修复了 DecorView 的 captureToBitmap 问题
- 尝试通过重试 takeScreenshot 来提高 DeviceCapture 的可靠性
依赖项变更
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新:现在编译为 Java 8 字节码
- 更新到 androidx.test:monitor:1.70-alpha01
Core 1.5.0
Core Core-ktx 1.5.0
2022 年 11 月 8 日
androidx.test:core:1.5.0
和 androidx.test:core-ktx:1.5.0
已发布。
自 1.4.0 以来的变更包括
新功能
- 记录 ActivityScenario 启动和关闭的 Android 跟踪跨度。
- 添加了新的实验性截图 API。这些 API 将根据平台 API 级别自动选择最高保真度进行截图,并支持自动化测试设备 (ATD) 模拟器映像。
- View.captureToBitmap 扩展函数
- Window.captureRegionToBitmap 扩展函数
- takeScreenshot()
- 添加实验性 Bitmap.writeToTestStorage API
API 变更
- 添加 ActivityScenario#launchActivityForResult API 并修改 ActivityScenario#launch 以移除 Bootstrap Activity API 的使用。此变更应可提高 ActivityScenario#launch 的性能和稳定性。ActivityScenario#getResult 现在将强制只能与 ActivityScenario#launchActivityForResult 一起使用
Bug 修复
- 修复了在 Android 33 上定位和运行时 ActivityScenario#launch 的问题
- 使用 elapsedRealtime 而非 currentTimeMillis 来跟踪 ActivityScenario 超时。
- 修复了 ActivityScenario 在自检测测试中从带有包名的 intent 启动 Activity 的问题。
- 通过在内部 Activity 中使用纯白色背景并禁用过渡动画来减少 ActivityScenario 的开销
依赖项变更
- 更新到
- kotlin stdlib 1.7.10
- androidx.lifecycle:lifecycle-common:2.3.1
- androidx.annotation:annotation:1.2.0
- 添加
- androidx.test.services:storage:1.4.2
- com.google.guava:listenablefuture:1.0
- androidx.concurrent:concurrent-futures:1.1.0
Core Core-ktx 1.5.0-rc01
2022 年 10 月 26 日
androidx.test:core:1.5.0-rc01
和 androidx.test:core-ktx:1.5.0-rc01
已发布。
Core Core-ktx 1.5.0-beta01
2022 年 10 月 6 日
androidx.test:core:1.5.0-beta01
和 androidx.test:core-ktx:1.5.0-beta01
已发布。
API 变更
- 使用 NonNull/Nullable 注解新 API
Core Core-ktx 1.5.0-alpha02
2022 年 8 月 22 日
androidx.test:core:1.5.0-alpha02
和 androidx.test:core-ktx:1.5.0-alpha02
已发布。
API 变更
- 修改 ActivityScenario#launch 以移除 Bootstrap Activity API 的使用。此变更应可提高 ActivityScenario#launch 的性能和稳定性。ActivityScenario#getResult 现在将强制只能与 ActivityScenario#launchActivityForResult 一起使用
Bug 修复
- 修复了在 Android T 上定位和运行时 ActivityScenario#launch 的问题
- 使用 elapsedRealtime 而非 currentTimeMillis 来跟踪 ActivityScenario 超时。
依赖项变更
- 更新到 kotlin stdlib 1.7.10
Core Core-ktx 1.5.0-alpha01
2022 年 6 月 21 日
androidx.test:core:1.5.0-alpha01
和 androidx.test:core-ktx:1.5.0-alpha01
已发布。
API 变更
- 添加 ActivityScenario#launchActivityForResult API。此 API 将在检索 activity 结果时取代 ActivityScenario#launch 的使用。
Core 1.4.1
Core Core-ktx 1.4.1-alpha07
2022 年 6 月 1 日
androidx.test:core:1.4.1-alpha07
和 androidx.test:core-ktx:1.4.1-alpha07
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
依赖项变更
- 更新到 kotlin stdlib 1.6.21
Core Core-ktx 1.4.1-alpha06
2022 年 4 月 28 日
androidx.test:core:1.4.1-alpha06
和 androidx.test:core-ktx:1.4.1-alpha06
已发布。
Bug 修复 * 修复了 ActivityScenario 在自检测测试中从带有包名的 intent 启动 Activity 的问题。
Core Core-ktx 1.4.1-alpha05
2022 年 3 月 21 日
androidx.test:core:1.4.1-alpha05
和 androidx.test:core-ktx:1.4.1-alpha05
已发布。
Core Core-ktx 1.4.1-alpha04
2022 年 2 月 11 日
androidx.test:core:1.4.1-alpha04
和 androidx.test:core-ktx:1.4.1-alpha04
已发布。
新功能
- 记录 ActivityScenario 启动和关闭的 Android 跟踪跨度。
依赖项变更
- 添加 androidx.tracing 依赖项
- 更新到 kotlin stdlib 1.6.10
Core Core-ktx 1.4.1-alpha03
2021 年 10 月 4 日
androidx.test:core:1.4.1-alpha03
和 androidx.test:core-ktx:1.4.1-alpha03
已发布。
Bug 修复
- 修复了 View.captureToBitmap 和 Window.captureRegionToBitmap 扩展的可见性
- 为 Bitmap.writeToTestStorage 和截图方法添加更清晰的异常处理
Core Core-ktx 1.4.1-alpha02
2021 年 9 月 28 日
androidx.test:core:1.4.1-alpha02
和 androidx.test:core-ktx:1.4.1-alpha02
已发布。
新功能
- 添加新的实验性截图 API
- View.captureToBitmap 扩展函数
- Window.captureRegionToBitmap 扩展函数
- takeScreenshot()
- 添加实验性 Bitmap.writeToTestStorage API
依赖项变更
- 添加依赖项到
- kotlin stdlib 1.5.31
- androidx.test.services:storage:1.4.1-alpha02
- com.google.guava:listenablefuture:1.0
- androidx.concurrent:concurrent-futures:1.1.0
- 更新依赖项版本到
- androidx.lifecycle:lifecycle-common:2.3.1
- androidx.annotation:annotation:1.2.0
Core Core-ktx 1.4.1-alpha01
2021 年 8 月 23 日
androidx.test:core:1.4.1-alpha01
和 androidx.test:core-ktx:1.4.1-alpha01
已发布。
Bug 修复
- 通过在内部 Activity 中使用纯白色背景并禁用过渡动画来减少 ActivityScenario 的开销
依赖项变更
- -ktx:明确依赖 kotlin stdlib 1.4.30
Espresso 3.7.0
Espresso 3.7.0-alpha04
2025 年 6 月 13 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.7.0-alpha04
androidx.test.espresso:espresso-core:3.7.0-alpha04
androidx.test.espresso:espresso-contrib:3.7.0-alpha04
androidx.test.espresso:espresso-idling-resource:3.7.0-alpha04
androidx.test.espresso:espresso-intents:3.7.0-alpha04
androidx.test.espresso:espresso-remote:3.7.0-alpha04
androidx.test.espresso:espresso-web:3.7.0-alpha04
androidx.test.espresso.idling:idling-concurrent:3.7.0-alpha04
androidx.test.espresso.idling:idling-net:3.7.0-alpha04
Bug 修复
- 修复了 #2349,即多进程 + 2 个 Activity 上的不同旋转会在等待 UI 旋转时立即超时的问题。
- 使用 getSystemService 而非反射性 InputManager.getInstance
Espresso 3.7.0-alpha03
2025 年 4 月 23 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.7.0-alpha03
androidx.test.espresso:espresso-core:3.7.0-alpha03
androidx.test.espresso:espresso-contrib:3.7.0-alpha03
androidx.test.espresso:espresso-idling-resource:3.7.0-alpha03
androidx.test.espresso:espresso-intents:3.7.0-alpha03
androidx.test.espresso:espresso-remote:3.7.0-alpha03
androidx.test.espresso:espresso-web:3.7.0-alpha03
androidx.test.espresso.idling:idling-concurrent:3.7.0-alpha03
androidx.test.espresso.idling:idling-net:3.7.0-alpha03
Bug 修复
- 降级到 kotlin 1.9
- 仅在查询期间持有主 Looper 的 TestLooperManager
Espresso 3.7.0-alpha02
2025 年 3 月 27 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.7.0-alpha02
androidx.test.espresso:espresso-core:3.7.0-alpha02
androidx.test.espresso:espresso-contrib:3.7.0-alpha02
androidx.test.espresso:espresso-idling-resource:3.7.0-alpha02
androidx.test.espresso:espresso-intents:3.7.0-alpha02
androidx.test.espresso:espresso-remote:3.7.0-alpha02
androidx.test.espresso:espresso-web:3.7.0-alpha02
androidx.test.espresso.idling:idling-concurrent:3.7.0-alpha02
androidx.test.espresso.idling:idling-net:3.7.0-alpha02
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
- androidx.concurrent-futures 1.2.0
- kotlin 2.1.0
Espresso 3.7.0-alpha01
2025 年 2 月 3 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.7.0-alpha01
androidx.test.espresso:espresso-core:3.7.0-alpha01
androidx.test.espresso:espresso-contrib:3.7.0-alpha01
androidx.test.espresso:espresso-idling-resource:3.7.0-alpha01
androidx.test.espresso:espresso-intents:3.7.0-alpha01
androidx.test.espresso:espresso-remote:3.7.0-alpha01
androidx.test.espresso:espresso-web:3.7.0-alpha01
androidx.test.espresso.idling:idling-concurrent:3.7.0-alpha01
androidx.test.espresso.idling:idling-net:3.7.0-alpha01
Bug 修复
- 修复 Robolectric INSTRUMENTATION_TEST + 暂停 looper 中 espresso 的死锁。
- 将 espresso 的 MessageQueue 访问重构为一个 TestLooperManagerCompat 类,并在可用时使用新的 TestLooperManager API。
API 变更
- 更新到 minSdkVersion 21
Espresso 3.6.1
2024 年 6 月 26 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.1
androidx.test.espresso:espresso-core:3.6.1
androidx.test.espresso:espresso-contrib:3.6.1
androidx.test.espresso:espresso-idling-resource:3.6.1
androidx.test.espresso:espresso-intents:3.6.1
androidx.test.espresso:espresso-remote:3.6.1
androidx.test.espresso:espresso-web:3.6.1
androidx.test.espresso.idling:idling-concurrent:3.6.1
androidx.test.espresso.idling:idling-net:3.6.1
Bug 修复
- 将 accessibilitytestframework 版本(回退)升级到 3.1.2。
Espresso 3.6.0
2024 年 6 月 24 日
以下工件已发布
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
自上次稳定版 3.5.1 以来的变更包括
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
- 修复 Robolectric 中缓慢的 inRoot 操作
- 一致地使用 PlatformTestStorageRegistry.getInstance 而不是传递引用
- 从 InteractionResponse 公共参考文档中删除 TODO
- 修复 AdapterDataLoaderAction 错误消息中的拼写错误
- 用 Java 集合和内联替换 Guava 的使用
- 参考文档清理 - 补充之前缺失的参数、修复链接等
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 在非远程模式下运行时,停止向后台线程发布空任务
- 更好地处理 DefaultFailureHandler 的层次结构捕获和截图过程中可能发生的异常。
- 修复 IsPlatformPopup 的描述以匹配其行为。
- 修复使用了错误坐标的已弃用的 obtainMovement 实现。
- 将损坏的 junit.org javadoc 链接替换为 @link。
API 变更
- 添加 ViewActions.captureToBitmap
- 向 DrawerActions 添加 waitForClose。
- 将生成的 IInteractionExecutionStatus 类标记为 RestrictTo LIBRARY_GROUP
- 从 RuntimePermissionStubber 中移除 ExperimentalTestApi
- 添加新的 IsActivatedMatcher 以验证其是否已激活。
- 使 Espresso.onIdle() 在主线程上工作,以便从主线程排出主线程。
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
- 添加 scrollTo 变体,允许滚动到 90% 以上显示的视图
- 弃用 EspressoOptional,转而使用 @Nullable。
- 允许自定义 Espresso 的默认故障处理程序,以在故障时禁用屏幕截图
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器切换到 OpenJDK 17。这应该可以解决 IncompatibleClassChangeErrors (https://github.com/android/android-test/issues/1642) 问题
- 移除内部 Guava 使用,从而减小了二进制文件大小
- 发布的 AAR 不再受 ProGuard 保护
Espresso 3.6.0-rc01
2024 年 5 月 30 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-rc01
androidx.test.espresso:espresso-core:3.6.0-rc01
androidx.test.espresso:espresso-contrib:3.6.0-rc01
androidx.test.espresso:espresso-idling-resource:3.6.0-rc01
androidx.test.espresso:espresso-intents:3.6.0-rc01
androidx.test.espresso:espresso-remote:3.6.0-rc01
androidx.test.espresso:espresso-web:3.6.0-rc01
androidx.test.espresso.idling:idling-concurrent:3.6.0-rc01
androidx.test.espresso.idling:idling-net:3.6.0-rc01
Espresso 3.6.0-beta01
2024 年 5 月 16 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-beta01
androidx.test.espresso:espresso-core:3.6.0-beta01
androidx.test.espresso:espresso-contrib:3.6.0-beta01
androidx.test.espresso:espresso-idling-resource:3.6.0-beta01
androidx.test.espresso:espresso-intents:3.6.0-beta01
androidx.test.espresso:espresso-remote:3.6.0-beta01
androidx.test.espresso:espresso-web:3.6.0-beta01
androidx.test.espresso.idling:idling-concurrent:3.6.0-beta01
androidx.test.espresso.idling:idling-net:3.6.0-beta01
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
Espresso 3.6.0-alpha04
2024 年 4 月 26 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-alpha04
androidx.test.espresso:espresso-core:3.6.0-alpha04
androidx.test.espresso:espresso-contrib:3.6.0-alpha04
androidx.test.espresso:espresso-idling-resource:3.6.0-alpha04
androidx.test.espresso:espresso-intents:3.6.0-alpha04
androidx.test.espresso:espresso-remote:3.6.0-alpha04
androidx.test.espresso:espresso-web:3.6.0-alpha04
androidx.test.espresso.idling:idling-concurrent:3.6.0-alpha04
androidx.test.espresso.idling:idling-net:3.6.0-alpha04
Bug 修复
- 修复 Robolectric 中缓慢的 inRoot 操作
- 一致地使用 PlatformTestStorageRegistry.getInstance 而不是传递引用
- 从 InteractionResponse 公共参考文档中删除 TODO
新功能
- 向 DrawerActions 添加 waitForClose。
API 变更
- 适应 ViewCapture API 更改
- 删除 ViewInteraction.captureToBitmap,转而使用 ViewActions.captureToBitmap,并将其从 ExperimentalTestApi 提升为稳定 API
Espresso 3.6.0-alpha03
2024 年 1 月 26 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-alpha03
androidx.test.espresso:espresso-core:3.6.0-alpha03
androidx.test.espresso:espresso-contrib:3.6.0-alpha03
androidx.test.espresso:espresso-idling-resource:3.6.0-alpha03
androidx.test.espresso:espresso-intents:3.6.0-alpha03
androidx.test.espresso:espresso-remote:3.6.0-alpha03
androidx.test.espresso:espresso-web:3.6.0-alpha03
androidx.test.espresso.idling:idling-concurrent:3.6.0-alpha03
androidx.test.espresso.idling:idling-net:3.6.0-alpha03
Bug 修复
- 修复 AdapterDataLoaderAction 错误消息中的拼写错误
- 从 Espresso 中移除 Java 代码中的 Kotlin collect stdlib 调用
- 参考文档清理 - 补充之前缺失的参数、修复链接等
- 从 Java 代码中移除 Kotlin StringKt 调用
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 在非远程模式下运行时,停止向后台线程发布空任务
- 更好地处理 DefaultFailureHandler 的层次结构捕获和截图过程中可能发生的异常。
API 变更
- 将生成的 IInteractionExecutionStatus 类标记为 RestrictTo LIBRARY_GROUP
- 从 RuntimePermissionStubber 中移除 ExperimentalTestApi
Espresso 3.6.0-alpha02
2023 年 11 月 29 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-alpha02
androidx.test.espresso:espresso-core:3.6.0-alpha02
androidx.test.espresso:espresso-contrib:3.6.0-alpha02
androidx.test.espresso:espresso-idling-resource:3.6.0-alpha02
androidx.test.espresso:espresso-intents:3.6.0-alpha02
androidx.test.espresso:espresso-remote:3.6.0-alpha02
androidx.test.espresso:espresso-web:3.6.0-alpha02
androidx.test.espresso.idling:idling-concurrent:3.6.0-alpha02
androidx.test.espresso.idling:idling-net:3.6.0-alpha02
Bug 修复
- 修复 IsPlatformPopup 的描述以匹配其行为。
- 修复使用了错误坐标的已弃用的 obtainMovement 实现。
- 将损坏的 junit.org javadoc 链接替换为 @link。
API 变更
- 添加新的 IsActivatedMatcher 以验证其是否已激活。
- 使 Espresso.onIdle() 在主线程上工作,以便从主线程排出主线程。
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
- 添加 scrollTo 变体,允许滚动到 90% 以上显示的视图
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
Espresso 3.6.0-alpha01
2023 年 3 月 21 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.6.0-alpha01
androidx.test.espresso:espresso-core:3.6.0-alpha01
androidx.test.espresso:espresso-contrib:3.6.0-alpha01
androidx.test.espresso:espresso-idling-resource:3.6.0-alpha01
androidx.test.espresso:espresso-intents:3.6.0-alpha01
androidx.test.espresso:espresso-remote:3.6.0-alpha01
androidx.test.espresso:espresso-web:3.6.0-alpha01
androidx.test.espresso.idling:idling-concurrent:3.6.0-alpha01
androidx.test.espresso.idling:idling-net:3.6.0-alpha01
API 变更
- 弃用 EspressoOptional,转而使用 @Nullable。
- 允许自定义 Espresso 的默认故障处理程序,以在故障时禁用屏幕截图
依赖项变更
- 更新到 androidx.test:monitor:1.7.0-alpha01、androidx.test:core:1.6.0-alpha01 和 androidx.test:runner:1.6.0-alpha01
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。这应该能解决 IncompatibleClassChangeErrors (https://github.com/android/android-test/issues/1642)
- 移除了 guava 在 kotlin stdlib 中的内部使用,从而减小了二进制文件大小
- 发布的 AAR 不再受 ProGuard 保护
Espresso 3.5.0
Espresso 3.5.1
2023 年 1 月 3 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.1
androidx.test.espresso:espresso-core:3.5.1
androidx.test.espresso:espresso-contrib:3.5.1
androidx.test.espresso:espresso-idling-resource:3.5.1
androidx.test.espresso:espresso-intents:3.5.1
androidx.test.espresso:espresso-remote:3.5.1
androidx.test.espresso:espresso-web:3.5.1
androidx.test.espresso.idling:idling-concurrent:3.5.1
androidx.test.espresso.idling:idling-net:3.5.1
Bug 修复
- 参考文档清理:更正参数名称并从 IdlingThreadPoolExecutor 和 UriIdlingResource 中删除过时的“beta”声明
依赖项变更
- 更新到 androidx.test:monitor:1.6.1 以支持在 Espresso 测试失败时保存屏幕截图,无需测试存储
Espresso 3.5.0
2022 年 11 月 8 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0
androidx.test.espresso:espresso-core:3.5.0
androidx.test.espresso:espresso-contrib:3.5.0
androidx.test.espresso:espresso-idling-resource:3.5.0
androidx.test.espresso:espresso-intents:3.5.0
androidx.test.espresso:espresso-remote:3.5.0
androidx.test.espresso:espresso-web:3.5.0
androidx.test.espresso.idling:idling-concurrent:3.5.0
androidx.test.espresso.idling:idling-net:3.5.0
新功能
- 为 Espresso 操作记录 Android Trace spans
- Espresso 的 DefaultFailureHandler 现在在测试失败时将屏幕截图保存到 TestStorage
- 添加实验性的 ViewInteraction.captureToBitmap 扩展函数
- 在失败时将视图层次结构保存到文件
API 变更
- 将 ViewMatchers hasTextColor 和 hasBackground 提升为稳定 API
- 添加 IntentsRule
- 为 IntentMatchers.hasExtraWithKey() 和 BundleMatchers.hasKey() 添加反转匹配器
- 添加一个 ViewAction,可滚动到 RecyclerView 中的最后一个位置。
- 添加 IntentMatcher.hasExtra API
Bug 修复
- 在向上事件中保留工具类型
- 使 IdlingRegistry 更具线程安全性。
- 支持 scrollTo() 的其他视图
- 移除 Robolectric 上每次 Espresso 交互时不需要的
interruptEspressoTasks
警告日志。 - 在 Robolectric 下运行时,移除 CloseKeyboardAction 中的超时
- 为输入手势注入使用一致的 InputDevice 源
- 在 Espresso Intents 中支持模拟 ActivityNotFoundExceptions。
- 当视图层次结构过大时,截断异常消息中的视图层次结构。
- 显示模糊匹配视图的数量和列表。
- 验证 onView.check/perform() 是否在 UI 线程上调用
依赖项变更
- 更新到
- kotlin stdlib 1.7.10
- jsr305:2.0.2
- tagsoup:1.2.1
- androidx.annotation:1.2.0
- contrib
- 更新到 drawer 1.1.1、recycler view 1.2.1、material 1.4.0
Espresso 3.5.0-rc01
2022 年 10 月 26 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-rc01
androidx.test.espresso:espresso-core:3.5.0-rc01
androidx.test.espresso:espresso-contrib:3.5.0-rc01
androidx.test.espresso:espresso-idling-resource:3.5.0-rc01
androidx.test.espresso:espresso-intents:3.5.0-rc01
androidx.test.espresso:espresso-remote:3.5.0-rc01
androidx.test.espresso:espresso-web:3.5.0-rc01
androidx.test.espresso.idling:idling-concurrent:3.5.0-rc01
androidx.test.espresso.idling:idling-net:3.5.0-rc01
Espresso 3.5.0-beta02
2022 年 10 月 21 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-beta02
androidx.test.espresso:espresso-core:3.5.0-beta02
androidx.test.espresso:espresso-contrib:3.5.0-beta02
androidx.test.espresso:espresso-idling-resource:3.5.0-beta02
androidx.test.espresso:espresso-intents:3.5.0-beta02
androidx.test.espresso:espresso-remote:3.5.0-beta02
androidx.test.espresso:espresso-web:3.5.0-beta02
androidx.test.espresso.idling:idling-concurrent:3.5.0-beta02
androidx.test.espresso.idling:idling-net:3.5.0-beta02
API 变更
- 将 ViewMatchers hasTextColor 和 hasBackground 提升为稳定 API
Bug 修复
- 修复 scrollTo 中的 recyclerview ClassNotFoundExceptions
依赖项变更
Espresso 3.5.0-beta01
2022 年 10 月 6 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-beta01
androidx.test.espresso:espresso-core:3.5.0-beta01
androidx.test.espresso:espresso-contrib:3.5.0-beta01
androidx.test.espresso:espresso-idling-resource:3.5.0-beta01
androidx.test.espresso:espresso-intents:3.5.0-beta01
androidx.test.espresso:espresso-remote:3.5.0-beta01
androidx.test.espresso:espresso-web:3.5.0-beta01
androidx.test.espresso.idling:idling-concurrent:3.5.0-beta01
androidx.test.espresso.idling:idling-net:3.5.0-beta01
API 变更
- 使用 NonNull/Nullable 注解 3.4.0 以来引入的新 API
- 添加 IntentsRule API
Bug 修复
- 使 IdlingRegistry 更具线程安全性。
- 支持 scrollTo() 的其他视图
依赖项变更
- 更新到 kotlin stdlib 1.7.10
- 更新到 jsr305:2.0.2
- 更新到 tagsoup:1.2.1
Espresso 3.5.0-alpha07
2022 年 6 月 1 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha07
androidx.test.espresso:espresso-core:3.5.0-alpha07
androidx.test.espresso:espresso-contrib:3.5.0-alpha07
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha07
androidx.test.espresso:espresso-intents:3.5.0-alpha07
androidx.test.espresso:espresso-remote:3.5.0-alpha07
androidx.test.espresso:espresso-web:3.5.0-alpha07
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha07
androidx.test.espresso.idling:idling-net:3.5.0-alpha07
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
依赖项变更
- 更新到 kotlin stdlib 1.6.21
Espresso 3.5.0-alpha06
2022 年 4 月 28 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha06
androidx.test.espresso:espresso-core:3.5.0-alpha06
androidx.test.espresso:espresso-contrib:3.5.0-alpha06
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha06
androidx.test.espresso:espresso-intents:3.5.0-alpha06
androidx.test.espresso:espresso-remote:3.5.0-alpha06
androidx.test.espresso:espresso-web:3.5.0-alpha06
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha06
androidx.test.espresso.idling:idling-net:3.5.0-alpha06
Bug 修复
- 移除 Robolectric 上每次 Espresso 交互时不需要的
interruptEspressoTasks
警告日志。
Espresso 3.5.0-alpha05
2022 年 3 月 21 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha05
androidx.test.espresso:espresso-core:3.5.0-alpha05
androidx.test.espresso:espresso-contrib:3.5.0-alpha05
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha05
androidx.test.espresso:espresso-intents:3.5.0-alpha05
androidx.test.espresso:espresso-remote:3.5.0-alpha05
androidx.test.espresso:espresso-web:3.5.0-alpha05
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha05
androidx.test.espresso.idling:idling-net:3.5.0-alpha05
Bug 修复
- 在 Robolectric 下运行时,移除 CloseKeyboardAction 中的超时
Espresso 3.5.0-alpha04
2022 年 2 月 11 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha04
androidx.test.espresso:espresso-core:3.5.0-alpha04
androidx.test.espresso:espresso-contrib:3.5.0-alpha04
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha04
androidx.test.espresso:espresso-intents:3.5.0-alpha04
androidx.test.espresso:espresso-remote:3.5.0-alpha04
androidx.test.espresso:espresso-web:3.5.0-alpha04
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha04
androidx.test.espresso.idling:idling-net:3.5.0-alpha04
API 变更
- 为 IntentMatchers.hasExtraWithKey() 和 BundleMatchers.hasKey() 添加反转匹配器
- 添加一个 ViewAction,可滚动到 RecyclerView 中的最后一个位置。
新功能
- 为 Espresso 操作记录 Android Trace spans
Bug 修复
- 为输入手势注入使用一致的 InputDevice 源
- 在 Espresso Intents 中支持模拟 ActivityNotFoundExceptions。
- 当视图层次结构过大时,截断异常消息中的视图层次结构。
- 显示模糊匹配视图的数量和列表。
依赖项变更
- 更新到 kotlin stdlib 1.6.10
Espresso 3.5.0-alpha03
2021 年 10 月 4 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha03
androidx.test.espresso:espresso-core:3.5.0-alpha03
androidx.test.espresso:espresso-contrib:3.5.0-alpha03
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha03
androidx.test.espresso:espresso-intents:3.5.0-alpha03
androidx.test.espresso:espresso-remote:3.5.0-alpha03
androidx.test.espresso:espresso-web:3.5.0-alpha03
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha03
androidx.test.espresso.idling:idling-net:3.5.0-alpha03
新功能
- Espresso 的 DefaultFailureHandler 现在在测试失败时将屏幕截图保存到 TestStorage
Bug 修复
- 修复 ViewInteraction.captureToBitmap 的可见性和功能
- 验证 onView.check/perform() 是否在 UI 线程上调用
Espresso 3.5.0-alpha02
2021 年 9 月 28 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha02
androidx.test.espresso:espresso-core:3.5.0-alpha02
androidx.test.espresso:espresso-contrib:3.5.0-alpha02
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha02
androidx.test.espresso:espresso-intents:3.5.0-alpha02
androidx.test.espresso:espresso-remote:3.5.0-alpha02
androidx.test.espresso:espresso-web:3.5.0-alpha02
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha02
androidx.test.espresso.idling:idling-net:3.5.0-alpha02
新功能
- 添加实验性的 ViewInteraction.captureToBitmap 扩展函数
依赖项变更
- 所有
- 更新到 androidx.annotation:1.2.0
- core
- 更新到 kotlin stdlib 1.5.31
- contrib
- 更新到 drawer 1.1.1、recycler view 1.2.1、materual 1.4.0
Espresso 3.5.0-alpha01
2021 年 8 月 23 日
以下工件已发布
androidx.test.espresso:espresso-accessibility:3.5.0-alpha01
androidx.test.espresso:espresso-core:3.5.0-alpha01
androidx.test.espresso:espresso-contrib:3.5.0-alpha01
androidx.test.espresso:espresso-idling-resource:3.5.0-alpha01
androidx.test.espresso:espresso-intents:3.5.0-alpha01
androidx.test.espresso:espresso-remote:3.5.0-alpha01
androidx.test.espresso:espresso-web:3.5.0-alpha01
androidx.test.espresso.idling:idling-concurrent:3.5.0-alpha01
androidx.test.espresso.idling:idling-net:3.5.0-alpha01
新功能
- 在失败时将视图层次结构保存到文件
API 变更
- 添加 IntentMatcher.hasExtra API
依赖项变更
- core: 依赖 kotlin stdlib 1.4.30
Espresso Device 1.1.0
Espresso Device 1.1.0-alpha03
2025 年 4 月 23 日
androidx.test.espresso:espresso-device:1.1.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
Espresso Device 1.1.0-alpha02
2025 年 3 月 27 日
androidx.test.espresso:espresso-device:1.1.0-alpha02
已发布。
Bug 修复
- 修复 DisplaySizeRule 未能始终如一地将模拟器恢复到原始状态的问题(针对失败的测试)
- 支持在活动未处于恢复状态时使用 DisplaySizeRule
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
- gRPC 1.71.0
- kotlin 2.1.0
- kotlin coroutines 1.10.1
Espresso Device 1.1.0-alpha01
2025 年 2 月 3 日
androidx.test.espresso:espresso-device:1.1.0-alpha01
已发布。
Bug 修复
- 添加对设置多重恢复活动屏幕方向的支持
- 修复设置屏幕方向和折叠模式时的并发修改问题
- 调整参考文档,说明设置指南现在位于 https://developer.android.com/studio/test/espresso-api#set_up_your_project_for_the_espresso_device_api
API 更改 * 更新 WidthSizeClass 和 HeightSizeClass 以使用 androidx.window 大小类 * 更新到 minSdkVersion 21
Espresso Device 1.0.1
2024 年 6 月 26 日
androidx.test.espresso:espresso-device:1.0.1
已发布。
Espresso Device 1.0.0
2024 年 6 月 24 日
androidx.test.espresso:espresso-device:1.0.0
已发布。
首次发布!
新功能
- 用于旋转和折叠设备的 API
- 用于根据设备模式和显示过滤测试的 API
Espresso Device 1.0.0-rc01
2024 年 5 月 30 日
androidx.test.espresso:espresso-device:1.0.0-rc01
已发布。
Bug 修复
- 添加对设置多重恢复活动屏幕方向的支持
- 修复设置屏幕方向和折叠模式时的并发修改问题
Espresso Device 1.0.0-beta01
2024 年 5 月 16 日
androidx.test.espresso:espresso-device:1.0.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
Espresso Device 1.0.0-alpha09
2024 年 4 月 26 日
androidx.test.espresso:espresso-device:1.0.0-alpha09
已发布。
错误修复 * 澄清在没有恢复活动的情况下设置屏幕方向的错误消息 * 支持在半折叠的 API 34 物理设备上设置屏幕方向
API 变更
- 将 ScreenOrientationRule 的 defaultOrientation 参数设为可选
Espresso Device 1.0.0-alpha08
2024 年 1 月 26 日
androidx.test.espresso:espresso-device:1.0.0-alpha08
已发布。
Bug 修复
- 当进程没有 INTERNET 权限时,添加更好的错误消息
- 使 Espresso Device 文档中的异常类引用成为可点击链接
API 更改 * 从 androidx.test.filter.CustomFilter 中移除 ExperimentalTestApi
Espresso Device 1.0.0-alpha07
2023 年 11 月 29 日
androidx.test.espresso:espresso-device:1.0.0-alpha07
已发布。
API 变更
- 支持在物理设备上设置设备模式
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
Espresso Device 1.0.0-alpha06
2023 年 9 月 18 日
以下工件已发布
androidx.test.espresso:espresso-device:1.0.0-alpha06
API 更改 * 支持在开放的物理设备上设置屏幕方向 * 移除 ActionContext 接口
依赖项变更 * minSdkVersion 现在是 19
Espresso Device 1.0.0-alpha05
2023 年 5 月 4 日
以下工件已发布
androidx.test.espresso:espresso-device:1.0.0-alpha05
API 变更
- 添加用于旋转和折叠模拟器的实验性 API
JUnit Extensions 1.3.0
ext.junit 1.3.0-alpha03
2025 年 4 月 23 日
androidx.test.ext:junit:1.3.0-alpha03
和 androidx.test.ext:junit-ktx:1.3.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
ext.junit 1.3.0-alpha02
2025 年 3 月 27 日
androidx.test.ext:junit:1.3.0-alpha02
和 androidx.test.ext:junit-ktx:1.3.0-alpha02
已发布。
Bug 修复
- 修复了类描述中已弃用的
androidx.test.rule.ActivityTestRule
的链接。 - 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
- kotlin 2.1.0
ext.junit 1.3.0-alpha01
2025 年 2 月 3 日
androidx.test.ext:junit:1.3.0-alpha01
和 androidx.test.ext:junit-ktx:1.3.0-alpha01
已发布。
API 变更
- 更新到 minSdkVersion 21
ext.junit 1.2.1
2024 年 6 月 26 日
androidx.test.ext:junit:1.2.1
和 androidx.test.ext:junit-ktx:1.2.1
已发布。
ext.junit 1.2.0
2024 年 6 月 24 日
androidx.test.ext:junit:1.2.0
和 androidx.test.ext:junit-ktx:1.2.0
已发布。
自上次稳定版本 1.1.5 以来的更改包括
API 变更
- 创建 DeleteFilesRule:用于在测试用例执行之间删除文件的 API
- 添加 AppComponentFactoryRule
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
Bug 修复
- 参考文档清理 - 补充之前缺失的参数、修复链接等
新功能
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 17。
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
ext.junit 1.2.0-rc01
2024 年 5 月 30 日
androidx.test.ext:junit:1.2.0-rc01
和 androidx.test.ext:junit-ktx:1.2.0-rc01
已发布。
ext.junit 1.2.0-beta01
2024 年 5 月 16 日
androidx.test.ext:junit:1.2.0-beta01
和 androidx.test.ext:junit-ktx:1.2.0-beta01
已发布。
ext.junit 1.2.0-alpha04
2024 年 4 月 26 日
androidx.test.ext:junit:1.2.0-alpha04
和 androidx.test.ext:junit-ktx:1.2.0-alpha04
已发布。
Bug 修复
- 在 DeleteFilesRule 中使用 PlatformTestStorage 而不是 TestStorage
ext.junit 1.2.0-alpha03
2024 年 1 月 26 日
androidx.test.ext:junit:1.2.0-alpha03
和 androidx.test.ext:junit-ktx:1.2.0-alpha03
已发布。
Bug 修复
- 参考文档清理 - 补充之前缺失的参数、修复链接等
ext.junit 1.2.0-alpha02
2023 年 11 月 29 日
androidx.test.ext:junit:1.2.0-alpha02
和 androidx.test.ext:junit-ktx:1.2.0-alpha02
已发布。
API 变更
- 添加 AppComponentFactoryRule
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
ext.junit 1.2.0-alpha01
2023 年 3 月 21 日
androidx.test.ext:junit:1.2.0-alpha01
和 androidx.test.ext:junit-ktx:1.2.0-alpha01
已发布。
API 变更
- 创建 DeleteFilesRule:用于在测试用例执行之间删除文件的 API
依赖项变更
- 更新到 androidx.test:monitor:1.7.0-alpha01、androidx.test:core:1.6.0-alpha01、androidx.test.services:storage:1.5.0-alpha01
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。
JUnit Extensions 1.1.5
ext.junit 1.1.5
2023 年 1 月 3 日
androidx.test.ext:junit:1.1.5
和 androidx.test.ext:junit-ktx:1.1.5
已发布。
Bug 修复
- 修复 ActivityScenarioRule 的参考文档格式
JUnit Extensions 1.1.4
ext.junit 1.1.4
2022 年 11 月 8 日
androidx.test.ext:junit:1.1.4
和 androidx.test.ext:junit-ktx:1.1.4
已发布。
自 1.1.3 以来更改包括
依赖项变更
- 更新到 kotlin stdlib 1.7.10
- 更新到 org.junit:junit:4.13.2
ext.junit 1.1.4-rc01
2022 年 10 月 26 日
androidx.test.ext:junit:1.1.4-rc01
和 androidx.test.ext:junit-ktx:1.1.4-rc01
已发布。
ext.junit 1.1.4-beta01
2022 年 10 月 6 日
androidx.test.ext:junit:1.1.4-beta01
和 androidx.test.ext:junit-ktx:1.1.4-beta01
已发布。
依赖项变更
- 更新到 kotlin stdlib 1.7.10
ext.junit 1.1.4-alpha07
2022 年 6 月 1 日
androidx.test.ext:junit:1.1.4-alpha07
和 androidx.test.ext:junit-ktx:1.1.4-alpha07
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
依赖项变更
- 更新到 kotlin stdlib 1.6.21
ext.junit 1.1.4-alpha06
2022 年 4 月 28 日
androidx.test.ext:junit:1.1.4-alpha06
和 androidx.test.ext:junit-ktx:1.1.4-alpha06
已发布。
Bug 修复
- 对
AndroidJUnit4
javadoc 进行了小幅修复。
ext.junit 1.1.4-alpha05
2022 年 3 月 21 日
androidx.test.ext:junit:1.1.4-alpha05
和 androidx.test.ext:junit-ktx:1.1.4-alpha05
已发布。
ext.junit 1.1.4-alpha04
2022 年 2 月 11 日
androidx.test.ext:junit:1.1.4-alpha04
和 androidx.test.ext:junit-ktx:1.1.4-alpha04
已发布。
** 依赖项更改
- 更新到 kotlin stdlib 1.6.10
ext.junit 1.1.4-alpha03
2021 年 10 月 4 日
androidx.test.ext:junit:1.1.4-alpha03
和 androidx.test.ext:junit-ktx:1.1.4-alpha03
已发布。
ext.junit 1.1.4-alpha02
2021 年 9 月 28 日
androidx.test.ext:junit:1.1.4-alpha02
和 androidx.test.ext:junit-ktx:1.1.4-alpha02
已发布。
依赖项变更
- 更新到
- kotlin stdlib 1.5.31
- org.junit:junit:4.13.2
ext.junit 1.1.4-alpha01
2021 年 8 月 23 日
androidx.test.ext:junit:1.1.4-alpha01
和 androidx.test.ext:junit-ktx:1.1.4-alpha01
已发布。
依赖项变更
- -ktx:明确依赖 kotlin stdlib 1.4.30
Junit-Gtest 1.0
Junit-Gtest 1.0.0-alpha01
2022 年 3 月 23 日
androidx.test.ext:junit-gtest:1.0.0-alpha01
已发布。1.0.0-alpha01 版包含这些提交。
首次发布的功能
- JUnit Gtest 是一个新库,其中包含一个 JUnit 运行程序,用于在连接的设备上运行 Gtest 套件。
Truth Extensions 1.7.0
ext.truth 1.7.0-alpha03
2025 年 4 月 23 日
androidx.test.ext:truth:1.7.0-alpha03
已发布。
ext.truth 1.7.0-alpha02
2025 年 3 月 27 日
androidx.test.ext:truth:1.7.0-alpha02
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
ext.truth 1.7.0-alpha01
2025 年 2 月 3 日
androidx.test.ext:truth:1.7.0-alpha01
已发布。
API 变更
- 更新到 minSdkVersion 21
ext.truth 1.6.0
2024 年 6 月 24 日
androidx.test.ext:truth:1.6.0
已发布。
自上次稳定版 1.5.0 以来的变更包括
API 变更
- 移除未使用的 androidx.test.annotation 依赖项
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- minSdkVersion 现在是 19,targetSdk 现在是 34
- 添加了
PersistableBundleSubject
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 17。
ext.truth 1.6.0-rc01
2024 年 5 月 30 日
androidx.test.ext:truth:1.6.0-rc01
已发布。
ext.truth 1.6.0-beta01
2024 年 5 月 16 日
androidx.test.ext:truth:1.6.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
ext.truth 1.6.0-alpha04
2024 年 4 月 26 日
androidx.test.ext:truth:1.6.0-alpha04
已发布。
新功能
- 为
BundleSubject
添加了byteArray()
方法。
ext.truth 1.6.0-alpha03
2024 年 1 月 26 日
androidx.test.ext:truth:1.6.0-alpha03
已发布。
Bug 修复
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
新功能
- 添加了
PersistableBundleSubject
ext.truth 1.6.0-alpha02
2023 年 11 月 29 日
androidx.test.ext:truth:1.6.0-alpha02
已发布。
API 变更
- minSdkVersion 现在是 19,targetSdk 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
ext.truth 1.6.0-alpha01
2022 年 3 月 21 日
androidx.test.ext:truth:1.6.0-alpha01
已发布。
依赖项变更
- 更新到 androidx.test:core:1.6.0-alpha01
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。
Truth Extensions 1.5.0
ext.truth 1.5.0
2022 年 11 月 8 日
androidx.test.ext:truth:1.5.0
已发布。
自 1.4.0 以来的变更包括
API 变更
- 添加 BundleSubject#stringArray
- 添加 ParcelableSubject.marshallsEquallyTo()
- 添加 BundleSubject#doubleFloat
Bug 修复
- 使 Intent 匹配器对 null intent 显式失败
依赖项变更
- 更新到
- com.google.guava:guava:30.1.1-android
- com.google.truth:truth:1.1.3
ext.truth 1.5.0-rc01
2022 年 10 月 26 日
androidx.test.ext:truth:1.5.0-rc01
已发布。
ext.truth 1.5.0-beta02
2022 年 10 月 21 日
androidx.test.ext:truth:1.5.0-beta02
已发布。
API 变更
- 将 IntentCorrespondences#all 提升为稳定 API。
ext.truth 1.5.0-beta01
2022 年 10 月 6 日
androidx.test.ext:truth:1.5.0-beta01
已发布。
API 变更
- 使用 NonNull/Nullable 注解 1.4.0 以来引入的新 API
- 添加 BundleSubject#stringArray
ext.truth 1.5.0-alpha07
2022 年 6 月 1 日
androidx.test.ext:truth:1.5.0-alpha07
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
ext.truth 1.5.0-alpha06
2022 年 4 月 28 日
androidx.test.ext:truth:1.5.0-alpha06
已发布。
ext.truth 1.5.0-alpha05
2022 年 3 月 21 日
androidx.test.ext:truth:1.5.0-alpha05
已发布。
Bug 修复
- 使 Intent 匹配器对 null intent 显式失败
ext.truth 1.5.0-alpha04
2022 年 2 月 11 日
androidx.test.ext:truth:1.5.0-alpha04
已发布。
ext.truth 1.5.0-alpha03
2021 年 10 月 4 日
androidx.test.ext:truth:1.5.0-alpha03
已发布。
ext.truth 1.5.0-alpha02
2021 年 9 月 28 日
androidx.test.ext:truth:1.5.0-alpha02
已发布。
API 变更
- 添加 ParcelableSubject.marshallsEquallyTo()
依赖项变更
- 更新到
- com.google.guava:guava:30.1.1-android
- com.google.truth:truth:1.1.3
ext.truth 1.5.0-alpha01
2021 年 8 月 23 日
androidx.test.ext:truth:1.5.0-alpha01
已发布。
API 变更
- 添加 BundleSubject#doubleFloat
Monitor 1.8.0
monitor 1.8.0-alpha03
2025 年 4 月 23 日
androidx.test:monitor:1.8.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
monitor 1.8.0-alpha02
2025 年 3 月 27 日
androidx.test:monitor:1.8.0-alpha02
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0a
- kotlin 2.1.0
monitor 1.8.0-alpha01
2025 年 2 月 3 日
androidx.test:monitor:1.8.0-alpha01
已发布。
API 变更
- 更新到 minSdkVersion 21
- 将 ReflectionException 设为 RuntimeException
monitor 1.7.2
2024 年 8 月 14 日
androidx.test:monitor:1.7.2
已发布。
Bug 修复
- 修复与旧版 androidx.test:core 一起使用时 ActivityInvoker$-CC ClassNotFoundErrors 的问题
monitor 1.7.1
2024 年 6 月 26 日
androidx.test:monitor:1.7.1
已发布。
Bug 修复
- 在 forceEnableAppTracing 调用中捕获并记录 NoSuchMethodError
monitor 1.7.0
2024 年 6 月 24 日
androidx.test:monitor:1.7.0
已发布。
自上次稳定版本 1.6.1 以来的更改包括
API 变更
- 使 DeviceController 成为公共 API
- 将 PlatformTestStorage 移至公共 API
- 添加内部 ControlledLooper#isDrawCallbacksSupported。
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
- 修复 IntentMonitorImpl 回调中的同步问题
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新:现在编译为 Java 8 字节码
已知问题
- monitor 依赖于 androidx.tracing:1.1.0。根据配置,gradle 可能会在运行时将其降级到 1.0.0,导致“No static method forceEnableAppTracing”错误。作为解决方法,请添加显式“implementation androidx.tracing:1.1.0”依赖项。请参阅 https://github.com/android/android-test/issues/1755
monitor 1.7.0-rc01
2024 年 5 月 30 日
androidx.test:monitor:1.7.0-rc01
已发布。
monitor 1.7.0-beta01
2024 年 5 月 16 日
androidx.test:monitor:1.7.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
monitor 1.7.0-alpha05
2024 年 4 月 26 日
androidx.test:monitor:1.7.0-alpha05
已发布。
API 更改 * 将 DeviceController 从 ExperimentalTestApi 更改为公共 API * 将 PlatformTestStorage 移至公共 API * 添加内部 ControlledLooper#isDrawCallbacksSupported。
monitor 1.7.0-alpha04
2024 年 1 月 26 日
androidx.test:monitor:1.7.0-alpha04
已发布。
Bug 修复
- 修复 IntentMonitorImpl 回调中的同步问题
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
API 更改 * 将 androidx.test.platform.tracing 移回内部 API
monitor 1.7.0-alpha03
2023 年 11 月 29 日
androidx.test:monitor:1.7.0-alpha03
已发布。
API 变更
- targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
monitor 1.7.0-alpha02
2023 年 9 月 18 日
androidx.test:monitor:1.7.0-alpha02
已发布。
API 更改 * 添加 AppComponentFactory Rule
功能 * 当空闲资源超时时转储线程状态
错误修复 * 修复 API >= 26 上对话框内视图的 captureToBitmap 问题。
依赖项变更 * minSdkVersion 现在是 19
monitor 1.7.0-alpha01
2023 年 3 月 21 日
androidx.test:monitor:1.7.0-alpha01
已发布。
依赖项变更
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新:现在编译为 Java 8 字节码
Monitor 1.6.0
monitor 1.6.1
2023 年 1 月 3 日
androidx.test:monitor:1.6.1
已发布。
Bug 修复
- 修复 PlatformTestStorage 的默认实现。这将在未配置 androidx.test.services 时,使 Espresso 能够在测试失败时保存屏幕截图
- 参考文档清理
monitor 1.6.0
2022 年 11 月 8 日
androidx.test:monitor:1.6.0
已发布。
自 1.5.0 以来更改包括
API 变更
- 内部 API 更改以支持 ActivityScenario#launchActivityForResult
- 添加用于支持不同跟踪库的内部 API。
Bug 修复
- 移除“仍处于 CREATED 到 STOPPED 状态的 Activity”日志垃圾信息
依赖项变更
- 添加对 androidx.tracing 的依赖
monitor 1.6.0-rc01
2022 年 10 月 26 日
androidx.test:monitor:1.6.0-rc01
已发布。
monitor 1.6.0-beta01
2022 年 10 月 6 日
androidx.test:monitor:1.6.0-beta01
已发布。
monitor 1.6.0-alpha05
2022 年 8 月 22 日
androidx.test:monitor:1.6.0-alpha05
已发布。
API 变更
- 内部 API 更改以支持 ActivityScenario#launchActivityForResult
Monitor (又名 Platform) 1.6.0
monitor 1.6.0-alpha04
2022 年 6 月 1 日
androidx.test:monitor:1.6.0-alpha04
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
monitor 1.6.0-alpha03
2022 年 4 月 28 日
androidx.test:monitor:1.6.0-alpha03
已发布。
Bug 修复
- 移除“仍处于 CREATED 到 STOPPED 状态的 Activity”日志垃圾信息
monitor 1.6.0-alpha02
2022 年 3 月 21 日
androidx.test:monitor:1.6.0-alpha02
已发布。
Bug 修复
- 降低 HardwareRendererCompat 日志记录的严重性。
- 确保在 Instrumentation#finish 之前调用 Trace.endSection。
monitor 1.6.0-alpha01
2022 年 2 月 11 日
androidx.test:monitor:1.6.0-alpha01
已发布。
API 变更
- 添加用于支持不同跟踪库的内部插件 API。
依赖项变更
- 添加对 androidx.tracing 的依赖
Monitor (又名 Platform) 1.5.0
monitor 1.5.0
2021 年 12 月 13 日
androidx.test:monitor:1.5.0
已发布。
自上次 1.4.0 稳定版本以来的更改包括
API 变更
- 添加 HardwareRendererCompat
- 添加 PlatformTestStorage
- 弃用 androidx.test.annotation.Beta
monitor 1.5.0-rc01
2021 年 11 月 18 日
androidx.test:monitor:1.5.0-rc01
已发布。
monitor 1.5.0-beta01
2021 年 11 月 8 日
androidx.test:monitor:1.5.0-beta01
已发布。
monitor 1.5.0-alpha03
2021 年 10 月 4 日
androidx.test:monitor:1.5.0-alpha03
已发布。
monitor 1.5.0-alpha02
2021 年 9 月 28 日
androidx.test:monitor:1.5.0-alpha02
已发布。
API 变更
- 移除 HardwareRendererCompat#enableDrawingIfNecessary
- 从 HardwareRendererCompat 中移除 ExperimentalTestApi
- 弃用 androidx.test.annotation.Beta
monitor 1.5.0-alpha01
2021 年 8 月 23 日
androidx.test:monitor:1.5.0-alpha01
已发布。
API 变更
- 添加 HardwareRendererCompat
- 添加 PlatformTestStorage
Orchestrator 1.6.0
orchestrator 1.6.0-alpha04
2025 年 4 月 23 日
androidx.test:orchestrator:1.6.0-alpha04
已发布。
Bug 修复
- 降级到 kotlin 1.9
orchestrator 1.6.0-alpha03
2025 年 3 月 27 日
androidx.test:orchestrator:1.6.0-alpha03
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
orchestrator 1.6.0-alpha02
2025 年 2 月 3 日
androidx.test:orchestrator:1.6.0-alpha02
已发布。
orchestrator 1.6.0-alpha01
2024 年 11 月 20 日
androidx.test:orchestrator:1.6.0-alpha01
已发布。
API 变更
- 更新到 minSdkVersion 21
orchestrator 1.5.1
2024 年 10 月 15 日
androidx.test:orchestrator:1.5.1
已发布。
Bug 修复
- 修复包含空格的测试名称的执行问题
orchestrator 1.5.0
2024 年 6 月 24 日
androidx.test:orchestrator:1.5.0
已发布。
自上次稳定版本 1.4.2 以来的更改包括
新功能
- 引入 Instrumentation 参数代理,允许用户将 instrumentation 参数代理到被测 APK(例如:--no-hidden-api-checks)。
- 主要发布工具链更新。APK 现在使用不同的密钥签名,您需要卸载任何以前的 Orchestrator('adb uninstall androidx.test.orchestrator')
API 变更
- minSdkVersion 现在是 19
Bug 修复
- 修复测试名称过长时崩溃的问题
orchestrator 1.5.0-rc01
2024 年 5 月 30 日
androidx.test:orchestrator:1.5.0-rc01
已发布。
orchestrator 1.5.0-beta01
2024 年 5 月 16 日
androidx.test:orchestrator:1.5.0-beta01
已发布。
orchestrator 1.5.0-alpha04
2024 年 4 月 26 日
androidx.test:orchestrator:1.5.0-alpha04
已发布。
orchestrator 1.5.0-alpha03
2024 年 2 月 29 日
androidx.test:orchestrator:1.5.0-alpha03
已发布。
新功能
- 引入 Instrumentation 参数代理,允许用户将 instrumentation 参数代理到被测 APK(例如:--no-hidden-api-checks)。
orchestrator 1.5.0-alpha02
2023 年 11 月 29 日
androidx.test:orchestrator:1.5.0-alpha02
已发布。
API 变更
- minSdkVersion 现在是 19
Bug 修复
- 修复测试名称过长时崩溃的问题
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
orchestrator 1.5.0-alpha01
2023 年 3 月 21 日
androidx.test:orchestrator:1.5.0-alpha01
已发布。
依赖项变更
- 主要发布工具链更新。APK 现在使用不同的密钥签名,您需要卸载任何以前的 Orchestrator('adb uninstall androidx.test.orchestrator')
Orchestrator 1.4.2
orchestrator 1.4.2
2022 年 11 月 8 日
androidx.test:orchestrator:1.4.2
已发布。
orchestrator 1.4.2-rc01
2022 年 10 月 26 日
androidx.test:orchestrator:1.4.2-rc01
已发布。
orchestrator 1.4.2-beta01
2022 年 10 月 6 日
androidx.test:orchestrator:1.4.2-beta01
已发布。
orchestrator 1.4.2-alpha04
2022 年 6 月 1 日
androidx.test:orchestrator:1.4.2-alpha04
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
orchestrator 1.4.2-alpha03
2022 年 4 月 28 日
androidx.test:orchestrator:1.4.2-alpha03
已发布。
orchestrator 1.4.2-alpha02
2022 年 3 月 21 日
androidx.test:orchestrator:1.4.2-alpha02
已发布。
orchestrator 1.4.2-alpha01
2022 年 2 月 11 日
androidx.test:orchestrator:1.4.2-alpha01
已发布。
Orchestrator 1.4.1
orchestrator 1.4.1
2021 年 12 月 13 日
androidx.test:orchestrator:1.4.1
已发布。
自上一个 1.4.0 稳定版本以来的显著更改包括
Bug 修复
- 删除过时的 OrchestrationXmlTestRunListener,部分是为了防止 Android 11+ 上的错误消息
- 支持 Android API 31
orchestrator 1.4.1-rc01
2021 年 11 月 18 日
androidx.test:orchestrator:1.4.1-rc01
已发布。
orchestrator 1.4.1-beta01
2021 年 11 月 8 日
androidx.test:orchestrator:1.4.1-beta01
已发布。
orchestrator 1.4.1-alpha03
2021 年 10 月 4 日
androidx.test:orchestrator:1.4.1-alpha03
已发布。
orchestrator 1.4.1-alpha02
2021 年 9 月 28 日
androidx.test:orchestrator:1.4.1-alpha02
已发布。
orchestrator 1.4.1-alpha01
2021 年 8 月 23 日
androidx.test:orchestrator:1.4.1-alpha01
已发布。
Bug 修复
- 删除过时的 OrchestrationXmlTestRunListener,部分是为了防止 Android 11+ 上的错误消息
Runner 1.7.0
runner 1.7.0-alpha03
2025 年 4 月 23 日
androidx.test:runner:1.7.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
runner 1.7.0-alpha02
2025 年 3 月 27 日
androidx.test:runner:1.7.0-alpha02
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
runner 1.7.0-alpha01
2025 年 2 月 3 日
androidx.test:runner:1.7.0-alpha01
已发布。
Bug 修复
@AfterClass
期间的异常未通过InstrumentationResultPrinter
报告。- 现在已处理 AndroidJUnitRunner.buildRequest 中出现的异常。
- ClassRule 或 BeforeClass 期间的假设失败现在通过
InstrumentationResultPrinter
更一致地报告 - 澄清 SdkSuppress 参考文档
API 变更
- 更新到 minSdkVersion 21
- 弃用 androidx.test.filters.Suppress,转而使用 org.junit.Ignore
runner 1.6.2
2024 年 8 月 14 日
androidx.test:runner:1.6.2
已发布。
runner 1.6.1
2024 年 6 月 26 日
androidx.test:runner:1.6.1
已发布。
runner 1.6.0
2024 年 6 月 24 日
androidx.test:runner:1.6.0
已发布。
自上次稳定版本 1.5.2 以来的更改包括
API 变更
- 将 androidx.test.services.** 标记为 RestrictTo LIBRARY_GROUP
- 添加 CustomFilter API
- 添加 PackagePrefixClasspathSuite API
- 将 PermissionRequester 标记为 RestrictTo LIBRARY_GROUP 而不是 ExperimentalTestApi
- minSdkVersion 现在是 19
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
- 在记录测试异常时,使用 Log 内置的对 throwables 的支持,以避免堆栈截断
- 支持 GrantPermissionRule 使用 UiAutomation#grantRuntimePermissions 的内部更改
- 尝试澄清 RequiresDevice 文档中的限制和弃用原因
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 修复同一类/方法上的“-e class”和“-e notClass”应执行相同结果(不运行测试)的问题
- 如果 instrumentation 抛出 RuntimeException,
TestDiscoveryEventServiceConnection.send()
将正确地使测试失败而不是挂起。 - 停止为每个 AndroidJUnit4 测试类重新解析所有参数。这应该可以解决 #1948 中的初始化错误。
- 强制初始化 instrumentationRunListener,以防止在检测系统服务器进程时出现 NPE。
- 尝试避免输出超出 binder 事务限制的测试结果摘要。
- 等待最多 2 秒以运行活动结束器,以防止在测试过程中完成活动的情况
- 当由于自定义类加载器导致 junit 类不匹配时,改进错误报告
- 修复 @Ignore-d 类的 logOnly 模式中的报告问题
- 将 InstrumentationResultPrinter 的实例化移动到 multidex 加载之后
- 在 RunnerArgs 解析中使用 TestStorage 之前注册它
- 按照提供给 TestRequestBuilder 的顺序执行测试类。
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 17。
runner 1.6.0-rc01
2024 年 5 月 30 日
androidx.test:runner:1.6.0-rc01
已发布。
runner 1.6.0-beta01
2024 年 5 月 16 日
androidx.test:runner:1.6.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
runner 1.6.0-alpha07
2024 年 4 月 26 日
androidx.test:runner:1.6.0-alpha07
已发布。
Bug 修复
- 在记录测试异常时,使用 Log 内置的对 throwables 的支持,以避免堆栈截断
- 支持 GrantPermissionRule 使用 UiAutomation#grantRuntimePermissions 的内部更改
runner 1.6.0-alpha06
2024 年 1 月 26 日
androidx.test:runner:1.6.0-alpha06
已发布。
Bug 修复
- 尝试澄清 RequiresDevice 文档中的限制和弃用原因
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
- 修复同一类/方法上的“-e class”和“-e notClass”应执行相同结果(不运行测试)的问题
API 变更
- 将 androidx.test.services.** 标记为 RestrictTo LIBRARY_GROUP
- 从 CustomFilter 中移除 ExperimentalTestApi - 使其成为公共
- 从 PackagePrefixClasspathSuite 中移除 ExperimentalTestApi - 使其成为公共
- 将 PermissionRequester 标记为 RestrictTo LIBRARY_GROUP 而不是 ExperimentalTestApi
runner 1.6.0-alpha05
2023 年 11 月 29 日
androidx.test:runner:1.6.0-alpha05
已发布。
Bug 修复
- 如果 instrumentation 抛出 RuntimeException,
TestDiscoveryEventServiceConnection.send()
将正确地使测试失败而不是挂起。 - 停止为每个 AndroidJUnit4 测试类重新解析所有参数。这应该可以解决 #1948 中的初始化错误。
API 变更
- minSdkVersion 现在是 19
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
runner 1.6.0-alpha04
2023 年 8 月 21 日
androidx.test:runner:1.6.0-alpha04
已发布。
Bug 修复
- 强制初始化 instrumentationRunListener,以防止在检测系统服务器进程时出现 NPE。
依赖项变更
- 升级到 androidx.annotation:1.7.0-beta01
runner 1.6.0-alpha03
2023 年 6 月 27 日
androidx.test:runner:1.6.0-alpha03
已发布。
Bug 修复
- 尝试避免输出超出 binder 事务限制的测试结果摘要。
runner 1.6.0-alpha02
2023 年 4 月 25 日
androidx.test:runner:1.6.0-alpha02
已发布。
Bug 修复
- 等待最多 2 秒以运行活动结束器,以防止在测试过程中完成活动的情况
runner 1.6.0-alpha01
2023 年 3 月 21 日
androidx.test:runner:1.6.0-alpha01
已发布。
Bug 修复
- 当由于自定义类加载器导致 junit 类不匹配时,改进错误报告
- 修复 @Ignore-d 类的 logOnly 模式中的报告问题
- 将 InstrumentationResultPrinter 的实例化移动到 multidex 加载之后
- 在 RunnerArgs 解析中使用 TestStorage 之前注册它
- 按照提供给 TestRequestBuilder 的顺序执行测试类。
依赖项变更
- 更新到 androidx.test:monitor:1.7.0-alpha01
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。
Runner 1.5.0
runner 1.5.2
2023 年 1 月 3 日
androidx.test:runner:1.5.2
已发布。
Bug 修复
- 参考文档清理
runner 1.5.1
2022 年 11 月 9 日
androidx.test:runner:1.5.1
已发布。
Bug 修复
- 截断 TraceRunListener 中的跟踪名称,以防止长测试名称导致崩溃
runner 1.5.0
2022 年 11 月 8 日
androidx.test:runner:1.5.0
已发布。
自 1.4.0 以来的变更包括
新功能
- 为测试生命周期事件记录 Android Trace spans
API 变更
- 将长期存在的 @Beta/@ExperimentalTestApi androidx.test.runner.screenshot 标记为稳定但已弃用(转而使用新的 androidx.test.core/espresso 屏幕截图 API)
- 弃用“-e timeout”运行时参数,转而使用 JUnit 的 Timeout 规则。
- 添加 AbstractFilter 类。
- 添加 AndroidClasspathSuite 和实验性的 PackagePrefixClasspathSuite
- 空操作并弃用 Google Analytics
Bug 修复
- 添加对从 -e testFile 中的 TestStorage 读取的支持
- 处理应用程序在 instrumentationResultPrinter 设置之前崩溃的情况。
- 立即在 orchestrator instrumentation listener 中报告进程崩溃。
- 支持带逗号和哈希的参数化测试名称。
- 改进 orchestrator 测试发现阶段的错误处理
- 增强异常场景(应用程序崩溃等)中的错误处理
依赖项变更
- 更新到
- org.junit:junit:4.13.2
runner 1.5.0-rc01
2022 年 10 月 26 日
androidx.test:runner:1.5.0-rc01
已发布。
runner 1.5.0-beta02
2022 年 10 月 21 日
androidx.test:runner:1.5.0-beta02
已发布。
API 变更
- 将长期存在的 @Beta/@ExperimentalTestApi androidx.test.runner.screenshot 标记为稳定但已弃用
Bug 修复
- 添加对从 -e testFile 中的 TestStorage 读取的支持
runner 1.5.0-beta01
2022 年 10 月 6 日
androidx.test:runner:1.5.0-beta01
已发布。
API 变更
- 弃用“-e timeout”运行时参数,转而使用 JUnit 的 Timeout 规则。
- 添加 AbstractFilter 类。
Bug 修复
- 修复长测试名称的跟踪错误
- 处理应用程序在 instrumentationResultPrinter 设置之前崩溃的情况。
runner 1.5.0-alpha04
2022 年 6 月 1 日
androidx.test:runner:1.5.0-alpha04
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
runner 1.5.0-alpha03
2022 年 4 月 28 日
androidx.test:runner:1.5.0-alpha03
已发布。
Bug 修复
- 立即在 orchestrator instrumentation listener 中报告进程崩溃。
runner 1.5.0-alpha02
2022 年 3 月 21 日
androidx.test:runner:1.5.0-alpha02
已发布。
Bug 修复
- 确保在 Instrumentation#finish 之前调用 Trace.endSection。
runner 1.5.0-alpha01
2022 年 2 月 11 日
androidx.test:runner:1.5.0-alpha01
已发布。
API 变更
- 添加 AndroidClasspathSuite 和 PackagePrefixClasspathSuite
新功能
- 为测试生命周期事件记录 Android Trace spans
Bug 修复
- 支持带逗号和哈希的参数化测试名称。
- 改进 orchestrator 测试发现阶段的错误处理
Runner 1.4.1
runner 1.4.1-alpha03
2021 年 10 月 4 日
androidx.test:runner:1.4.1-alpha03
已发布。
Bug 修复
- 当测试执行器抛出错误时报告异常。
runner 1.4.1-alpha02
2021 年 9 月 28 日
androidx.test:runner:1.4.1-alpha02
已发布。
API 变更
- 将 androidx.test.annotaton.Beta 引用替换为 ExperimentalTestApi
Bug 修复
- 空操作并弃用 Google Analytics
依赖项变更
- 更新到
- org.junit:junit:4.13.2
runner 1.4.1-alpha01
2021 年 8 月 23 日
androidx.test:runner:1.4.1-alpha01
已发布。
Bug 修复
- 增强异常场景(应用程序崩溃等)中的错误处理
Rules 1.7.0
rules 1.7.0-alpha03
2025 年 4 月 23 日
androidx.test:rules:1.7.0-alpha03
已发布。
Bug 修复
- 降级到 kotlin 1.9
rules 1.7.0-alpha02
2025 年 3 月 27 日
androidx.test:rules:1.7.0-alpha02
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
rules 1.7.0-alpha01
2025 年 2 月 3 日
androidx.test:rules:1.7.0-alpha01
已发布。
API 变更
- 更新到 minSdkVersion 21
rules 1.6.1
2024 年 6 月 26 日
androidx.test:rules:1.6.1
已发布。
rules 1.6.0
2024 年 6 月 24 日
androidx.test:rules:1.6.0
已发布。
自上次稳定版 1.5.0 以来的变更包括
API 变更
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
- 建议使用 UiAutomation#grantRuntimePermissions 而不是 GrantPermissionRule
Bug 修复
- 将损坏的 junit.org javadoc 链接替换为 @link。
- 使 GrantPermissionRule 使用 UiAutomation 在 API >= 28 上授予权限,以解决在汽车上运行的问题。
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 17。
rules 1.6.0-rc01
2024 年 5 月 30 日
androidx.test:rules:1.6.0-rc01
已发布。
rules 1.6.0-beta01
2024 年 5 月 16 日
androidx.test:rules:1.6.0-beta01
已发布。
Bug 修复
- 移除未使用的 androidx.test.annotation 依赖项
rules 1.6.0-alpha04
2024 年 4 月 26 日
androidx.test:rules:1.6.0-alpha04
已发布。
Bug 修复
- 使 GrantPermissionRule 使用 UiAutomation 在 API >= 28 上授予权限,以解决在汽车上运行的问题。
rules 1.6.0-alpha03
2024 年 1 月 26 日
androidx.test:rules:1.6.0-alpha03
已发布。
Bug 修复
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
API 变更
- 建议使用 UiAutomation#grantRuntimePermissions 而不是 GrantPermissionRule
rules 1.6.0-alpha02
2023 年 11 月 29 日
androidx.test:rules:1.6.0-alpha02
已发布。
Bug 修复
- 将损坏的 junit.org javadoc 链接替换为 @link。
API 变更
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
rules 1.6.0-alpha01
2023 年 3 月 21 日
androidx.test:rules:1.6.0-alpha01
已发布。
依赖项变更
- 更新到 androidx.test:runner:1.6.0-alpha01
- 更新到 kotlin stdlib 1.7.22
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。
Rules 1.5.0
rules 1.5.0
2022 年 11 月 8 日
androidx.test:rules:1.5.0
已发布。
自 1.4.0 以来的变更包括
API 变更
- 将长期存在的 @Beta/@ExperimentalTestApi GrantPermissionRule 和 ServiceTestRule 提升为稳定版 API
- 将长期存在的 @Beta/@ExperimentalTestApi AtraceLogger 和 ProviderTestRule 提升为稳定但已弃用的 API
依赖项变更
- 更新到
- org.junit:junit:4.13.2
Rules 1.5.0
rules 1.5.0-rc01
2022 年 10 月 26 日
androidx.test:rules:1.5.0-rc01
已发布。
rules 1.5.0-beta01
2022 年 10 月 21 日
androidx.test:rules:1.5.0-beta01
已发布。
API 变更
- 将长期存在的 @Beta/@ExperimentalTestApi GrantPermissionRule 和 ServiceTestRule 提升为稳定版 API
- 将长期存在的 @Beta/@ExperimentalTestApi AtraceLogger 和 ProviderTestRule 提升为稳定但已弃用的 API
Rules 1.4.1
rules 1.4.1-beta01
2022 年 10 月 6 日
androidx.test:rules:1.4.1-beta01
已发布。
rules 1.4.1-alpha07
2022 年 6 月 1 日
androidx.test:rules:1.4.1-alpha07
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
rules 1.4.1-alpha06
2022 年 4 月 28 日
androidx.test:rules:1.4.1-alpha06
已发布。
rules 1.4.1-alpha05
2022 年 3 月 21 日
androidx.test:rules:1.4.1-alpha05
已发布。
rules 1.4.1-alpha04
2022 年 2 月 11 日
androidx.test:rules:1.4.1-alpha04
已发布。
rules 1.4.1-alpha03
2021 年 10 月 4 日
androidx.test:rules:1.4.1-alpha03
已发布。
rules 1.4.1-alpha02
2021 年 9 月 28 日
androidx.test:rules:1.4.1-alpha02
已发布。
API 变更
- 将 androidx.test.annotaton.Beta 引用替换为 ExperimentalTestApi
依赖项变更
- 更新到
- org.junit:junit:4.13.2
rules 1.4.1-alpha01
2021 年 8 月 23 日
androidx.test:rules:1.4.1-alpha01
已发布。
无重大变更
Services 1.6.0
services 1.6.0-alpha04
2025 年 4 月 23 日
androidx.test.services:test-services:1.6.0-alpha04
androidx.test.services:storage:1.6.0-alpha04
已发布。
Bug 修复
- 降级到 kotlin 1.9
新功能
- StackTrimmer 现在报告被抑制的异常
services 1.6.0-alpha03
2025 年 3 月 27 日
androidx.test.services:test-services:1.6.0-alpha03
androidx.test.services:storage:1.6.0-alpha03
已发布。
Bug 修复
- 更新 Bazel 工具链
- Bazel 版本 7.5.0
- rules_jvm_external 6.7
- rules_java 8.6.3
- rules_kotlin 2.1.3
- rules_android 0.6.3
- 更新依赖项到
- androidx.annotation 1.7.0
services 1.6.0-alpha02
2025 年 2 月 3 日
androidx.test.services:test-services:1.6.0-alpha02
androidx.test.services:storage:1.6.0-alpha02
已发布。
Bug 修复
- 已移除过时的 FileObserver 协议,转而使用基于 LocalSocket 的协议。
services 1.6.0-alpha01
2024 年 11 月 20 日
androidx.test.services:test-services:1.6.0-alpha01
androidx.test.services:storage:1.6.0-alpha01
已发布。
Bug 修复
- TestStorage:将内部文件使用输入目录位置
- StackTrimmer:加强对来自 Failure.getMessage() 的异常的防御。
新功能
- 为 ShellExecutor 添加基于 LocalSocket 的协议,以便与 ShellMain 通信。这使得 SpeakEasy 过时;如果在调用 LocalSocketShellMain 的 app_process 启动到测试启动之间,androidx.test.services 被终止(例如,由于低内存终止器),测试仍然能够与 LocalSocketShellMain 通信。
API 变更
- 更新到 minSdkVersion 21
services 1.5.0
2024 年 6 月 24 日
androidx.test.services:test-services:1.5.0
androidx.test.services:storage:1.5.0
已发布。
自上次稳定版 1.4.2 发布以来的变化包括
API 变更
- 将 TestStorage 从实验性 API 转为内部 API
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
Bug 修复
- 减少 HostedFile 日志垃圾信息
- 移除未使用的 androidx.test.annotation 依赖项
- TestStorage:当以非系统用户身份运行时,使用本地缓存目录存储输出文件
- 当文件打开以供写入时,TestStorage 现在会截断文件,除非明确指定为追加模式。这可以防止之前写入文件的字节保留在文件末尾。
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
新功能
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 17。
- APK 现在使用不同的密钥签名,您将需要卸载任何以前的 APK('adb uninstall androidx.test.services')
services 1.5.0-rc01
2024 年 5 月 30 日
androidx.test.services:test-services:1.5.0-rc01
androidx.test.services:storage:1.5.0-rc01
已发布。
services 1.5.0-beta01
2024 年 5 月 16 日
androidx.test.services:test-services:1.5.0-beta01
androidx.test.services:storage:1.5.0-beta01
已发布。
Bug 修复
- 减少 HostedFile 日志垃圾信息
- 移除未使用的 androidx.test.annotation 依赖项
services 1.5.0-alpha04
2024 年 4 月 26 日
androidx.test.services:test-services:1.5.0-alpha04
androidx.test.services:storage:1.5.0-alpha04
已发布。
Bug 修复
- TestStorage:当以非系统用户身份运行时,使用本地缓存目录存储输出文件
API 变更
- 将 TestStorage 从实验性 API 转为内部 API
services 1.5.0-alpha03
2024 年 1 月 26 日
androidx.test.services:test-services:1.5.0-alpha03
androidx.test.services:storage:1.5.0-alpha03
已发布。
Bug 修复
- 当文件打开以供写入时,TestStorage 现在会截断文件,除非明确指定为追加模式。这可以防止之前写入文件的字节保留在文件末尾。
- 移除对 Android SDK < 19 的所有支持。最低版本为 API 19 (Android Kit Kat 4.4)
services 1.5.0-alpha02
2023 年 11 月 29 日
androidx.test.services:test-services:1.5.0-alpha02
androidx.test.services:storage:1.5.0-alpha02
已发布。
Bug 修复
- 尝试避免输出超出绑定器事务限制的测试结果摘要
API 变更
- minSdkVersion 现在是 19,targetSdkVersion 现在是 34
新功能
- 工件现已签名。有关更多详细信息,请参阅验证依赖项。
services 1.5.0-alpha01
2022 年 3 月 21 日
androidx.test.services:test-services:1.5.0-alpha01
androidx.test.services:storage:1.5.0-alpha01
已发布。
依赖项变更
- 更新到 androidx.test:monitor:1.7.0-alpha01
- 主要发布工具链更新
- 类现在编译为 Java 8 字节码
- javac 编译器已切换到 OpenJDK 11。
- APK 现在使用不同的密钥签名,您将需要卸载任何以前的 orchestrator('adb uninstall androidx.test.services')
Services 1.4.2
services 1.4.2
2022 年 11 月 8 日
androidx.test.services:test-services:1.4.2
androidx.test.services:storage:1.4.2
已发布。
services 1.4.2-rc01
2022 年 10 月 26 日
androidx.test.services:test-services:1.4.2-rc01
androidx.test.services:storage:1.4.2-rc01
已发布。
services 1.4.2-beta01
2022 年 10 月 6 日
androidx.test.services:test-services:1.4.2-beta01
androidx.test.services:storage:1.4.2-beta01
已发布。
services 1.4.2-alpha04
2022 年 6 月 1 日
androidx.test.services:test-services:1.4.2-alpha04
androidx.test.services:storage:1.4.2-alpha04
已发布。
Bug 修复
- 恢复使用 javac 11 以防止 IncompatibleClassChangeErrors [#1351]
services 1.4.2-alpha03
2022 年 4 月 28 日
androidx.test.services:test-services:1.4.2-alpha03
androidx.test.services:storage:1.4.2-alpha03
已发布。
services 1.4.2-alpha02
2022 年 3 月 21 日
androidx.test.services:test-services:1.4.2-alpha02
androidx.test.services:storage:1.4.2-alpha02
已发布。
services 1.4.2-alpha01
2022 年 2 月 11 日
androidx.test.services:test-services:1.4.2-alpha01
androidx.test.services:storage:1.4.2-alpha01
已发布。
Services 1.4.1
services 1.4.1
2021 年 12 月 13 日
androidx.test.services:test-services:1.4.1
androidx.test.services:storage:1.4.1
已发布。
自上一个 1.4.0 稳定版本以来的显著更改包括
** Bug 修复**
- 通过为 ToolConnection 使用真实 uid 修复 Android API 31 上的执行问题 [#1042]
services 1.4.1-rc01
2021 年 11 月 18 日
androidx.test.services:test-services:1.4.1-rc01
androidx.test.services:storage:1.4.1-rc01
已发布。
services 1.4.1-beta01
2021 年 11 月 8 日
androidx.test.services:test-services:1.4.1-beta01
androidx.test.services:storage:1.4.1-beta01
已发布。
services 1.4.1-alpha03
2021 年 10 月 4 日
androidx.test.services:test-services:1.4.1-alpha03
androidx.test.services:storage:1.4.1-alpha03
已发布。
services 1.4.1-alpha02
2021 年 9 月 28 日
androidx.test.services:test-services:1.4.1-alpha02
androidx.test.services:storage:1.4.1-alpha02
已发布。
services 1.4.1-alpha01
2021 年 8 月 23 日
androidx.test.services:test-services:1.4.1-alpha01
androidx.test.services:storage:1.4.1-alpha01
已发布。
** Bug 修复**
- 通过为 ToolConnection 使用真实 uid 修复 Android S Beta4 上的执行问题 [#1042]
版本 1.4.0
版本 1.4.0
2021 年 6 月 30 日
这是 AndroidX Test 1.4.0 + Espresso 3.4.0 的稳定版本。它包含对以下库的更新
- Core 1.4.0
- Espresso 3.4.0
- Intents 3.4.0
- JUnit 1.1.3
- Monitor 1.4.0
- Orchestrator 1.4.0
- Runner 1.4.0
- Rules 1.4.0
- Truth 1.4.0
- Test Services 1.4.0
自 1.4.0-rc01 以来没有变化。以下是自 1.3.0 版本以来的变化摘要
新功能
- 添加 Espresso ViewMatcher API 以处理负面条件
- 允许从 Espresso IdlingRegistry 注销 Loopers
- 支持通过 java.util.ServiceLoader 指定 junit RunListeners
- 引入 Espresso BoundedDiagnosingMatcher 基类 API,它提供更好的错误消息,并将其应用于各种 Espresso 匹配器
- 支持在类级别使用 UIThreadTest
- ext.truth 的 LocationSubject 中添加了几个实用方法
- 为
SparseBooleanArray
添加SparseBooleanArraySubject
TruthSubject
用于断言
Bug 修复
- 改进测试失败时对大型堆栈跟踪的处理 [#729, #269]
- 移除测试运行器框架相关的堆栈帧
- 将堆栈跟踪截断到最大 64KB 限制,以避免绑定器限制事务错误
- 在 Android API < 21 上,为 multidex instrumentation apk 添加对类路径扫描测试发现的支持。
- Espresso:改进没有 Activity 时显示错误消息
- 改进 Instrumentation#runOnMainSync 异常错误处理
- 改进 -e timeout_msec 和 AndroidJUnit4 的文档。
- 将 ActivityOptions 发送到 BootstrapActivity [#685]
- 通过启用 Matcher.describeMismatch 改进 ViewMatchers#assertThat 错误消息
- 修复使用 espresso remote 时缺少 desugar ThrowableExtension 错误的问题 [issuetracker.google.com/170228109]
- 通过包含 androidx.test.espresso.web.bridge 类来修复 Android API 19 之前版本上的 espresso web
- 如果 ActivityResultWaiter 尚未注销,则在 InstrumentationActivityInvoker 中注销它
- Runner:将 TestEventClient 'not primary instr' 日志消息降级为警告,因为这是多进程测试中的预期条件
- Espresso:更新 HasSiblingMatcher 以仅检查兄弟节点(不检查自身)
- 修复 espresso.idling.resource 的 artifact 名称 [#809]
- 公开 setMasterPolicyTimeoutWhenDebuggerAttached 功能 [#814]
- 移除过于冗长的 ActivityLifecycleMonitorImpl 回调日志。
依赖项变更
- 更新 espresso.accessibility 和 espresso.contrib 以依赖于 androidx 兼容的 com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1。因此,此版本将要求 java8 源/目标兼容性。 [#492]
已知问题
- 在 APIS 30+ 上使用 orchestrator 需要 Studio/AGP 4.2+
版本 1.4.0-rc01
2021 年 6 月 21 日
这是 AndroidX Test 1.4.0/Espresso 3.4.0 的发布候选版。API 稳定。它包含对以下库的更新
- Core 1.4.0-rc01
- Espresso 3.4.0-rc01
- Intents 3.4.0-rc01
- JUnit 1.1.3-rc01
- Monitor 1.4.0-rc01
- Orchestrator 1.4.0-rc01
- Runner 1.4.0-rc01
- Rules 1.4.0-rc01
- Truth 1.4.0-rc01
- Test Services 1.4.0-rc01
此发布候选版与 1.4.0-beta02/3.4.0-beta02 版本等效,除了版本号。
版本 1.4.0-beta02
2021 年 6 月 7 日
这是 AndroidX Test 1.4.0 的 Beta 版本。API 预计不会更改。它包含对以下库的更新
- Core 1.4.0-beta02
- Espresso 3.4.0-beta02
- Intents 3.4.0-beta02
- JUnit 1.1.3-beta02
- Monitor 1.4.0-beta02
- Orchestrator 1.4.0-beta02
- Runner 1.4.0-beta02
- Rules 1.4.0-beta02
- Truth 1.4.0-beta02
- Test Services 1.4.0-beta02
以下是自 1.4.0-beta01 版本以来的变化摘要
Bug 修复
- 切换回经典脱糖以解决 beta-1 中的向后兼容性和核心库脱糖问题 [修复 #968]
版本 1.4.0-beta01
2021 年 5 月 17 日
这是 AndroidX Test 1.4.0 的 Beta 版本。API 预计不会更改。它包含对以下库的更新
- 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
以下是自 1.4.0-alpha06 版本以来的变化摘要
新的 API 清理
- 移除 InstrumentationProvider
- 取消弃用 BoundedMatcher
- 恢复 CursorMatcher 继承自 BoundedMatcher
版本 1.4.0-alpha06
2021 年 4 月 29 日
这是 AndroidX Test 1.4.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.4.0-alpha05 版本以来的变化摘要
Bug 修复
- 通过从清单中移除 forceQueryable 来支持针对 SDK < 29 进行编译 [#917]
版本 1.4.0-alpha05
2021 年 3 月 15 日
这是 AndroidX Test 1.4.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.4.0-alpha04 版本以来的变化摘要
API 变更
- [Truth] 为
SparseBooleanArray
添加SparseBooleanArraySubject
TruthSubject
用于断言。
Bug 修复
- 为 Android Test Orchestrator 和 Android Test Services APK 添加 QUERY_ALL_PACKAGES 权限,以便在 Android API R+ 上正常工作。
- 在 Android API < 21 上,为 multidex instrumentation apk 添加对类路径扫描测试发现的支持。
版本 1.4.0-alpha04
2021 年 2 月 8 日
这是 AndroidX Test 1.4.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.3.1-alpha03 版本以来的变化摘要
新功能
- [Espresso] 改进各种 Espresso 断言的错误消息
- [Truth] LocationSubject 中添加了几个实用方法
API 变更
- 添加
InstrumentationRegistry.registerInstrumentationProvider
Bug 修复
- 移除过于冗长的 ActivityLifecycleMonitorImpl 回调日志。
依赖项变更
版本 1.3.1
版本 1.3.1-alpha03
2021 年 1 月 11 日
这是 AndroidX Test 1.3.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.3.1-alpha02 版本以来的变化摘要
新功能
- 支持在类级别使用 UIThreadTest
Bug 修复
- 如果 ActivityResultWaiter 尚未注销,则在 InstrumentationActivityInvoker 中注销它
- Runner:将 TestEventClient 'not primary instr' 日志消息降级为警告,因为这是多进程测试中的预期条件
- Espresso:更新 HasSiblingMatcher 以仅检查兄弟节点(不检查自身)。
- 修复 espresso.idling.resource 的 artifact 名称 [#809]
- 公开 setMasterPolicyTimeoutWhenDebuggerAttached 功能 [#814]
依赖项变更
- 更新 espresso.accessibility 和 espresso.contrib 以依赖于 androidx 兼容的 com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:3.1。因此,此版本将要求 java8 源/目标兼容性。 [#492]
版本 1.3.1-alpha02
2020 年 10 月 20 日
这是 AndroidX Test 1.3.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.3.1-alpha01 版本以来的变化摘要
新功能
- 早期预览新的 Espresso BoundedDiagnosingMatcher 基类 API,它提供更好的错误消息。
Bug 修复
- 修复 API 30 上的 orchestrator clearPackageData [#743]
版本 1.3.1-alpha01
2020 年 10 月 15 日
这是 AndroidX Test 1.3.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- 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
以下是自 1.3.0 版本以来的变化摘要
新功能
- 添加 Espresso ViewMatcher API 以处理负面条件
- 允许从 Espresso IdlingRegistry 注销 Loopers
- 支持通过 java.util.ServiceLoader 指定 junit RunListeners
Bug 修复
- 改进测试失败时对大型堆栈跟踪的处理 [#729, #269]
- 移除测试运行器框架相关的堆栈帧
- 将堆栈跟踪截断到最大 64KB 限制,以避免绑定器限制事务错误
- Espresso:改进没有 Activity 时显示错误消息
- 改进 Instrumentation#runOnMainSync 异常错误处理
- 为 Orchestrator 和 Services 添加包可见性条目,以在使用 targetSdk 30 时修复 Orchestator [#743]
- 改进 -e timeout_msec 和 AndroidJUnit4 的文档。
- 将 ActivityOptions 发送到 BootstrapActivity [#685]
- 通过启用 Matcher.describeMismatch 改进 ViewMatchers#assertThat 错误消息
- 修复使用 espresso remote 时缺少 desugar ThrowableExtension 错误的问题 [issuetracker.google.com/170228109]
- 通过包含 androidx.test.espresso.web.bridge 类来修复 Android API 19 之前版本上的 espresso web
版本 1.3.0
版本 1.3.0
2020 年 8 月 25 日
这是 AndroidX Test 1.3.0 的稳定版本。它包含对以下库的更新
- 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
自 1.3.0-rc03 以来没有变化。以下是自 1.2.0 版本以来的变化摘要
新功能
- 通过 SdkSuppress#codeName 支持按预发布 SDK 过滤
- 为 Location 添加 truth 扩展
- 为 Bundle 字符串和可 parcelable 数组添加 truth 断言。
- 支持 ActivityOptions in ActivityScenario
- 使 Activity 生命周期转换超时可配置
- 处理通过隐式 Intent 启动的 Activity。(修复 #496)
- 添加 BundleMatchers.isEmpty() 和 isEmptyOrNull() 方法
- 允许 Intents.release 无需 Intents.init
- 添加 ViewMatchers.isFocused()
API 变更
- ActivityTestRule 已弃用,推荐使用 ActivityScenario/ActivityScenarioRule
- 允许 ServiceTestRule 的子类自定义超时
Bug 修复
- 修复过滤参数化方法
- 这也修复了使用 Orchestrator 运行参数化测试的问题 [#215, https://issuetracker.google.com/119838413]
- 修复在 API 29 上运行时出现“运行时权限对话框”的问题
- 跳过 ActivityScenario 中用于空 Activity 的启动和结束动画。(修复 #411)
- 处理通过隐式 Intent 启动的 Activity。(修复 #496)
- 使 kotlin 包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#680]
- 仅当 RobolectricTestRunner 在类路径上时,才将其委托给 AndroidJUnit4 运行器
- Espresso contrib:将 RecyclerView.findViewHolderForPosition 方法的使用替换为其替代方法
- 修复启用 AccessibilityChecks 时测试出现 NoSuchMethodError 的问题 (#376)
- 改进 Espresso 因处理消息而不是空闲资源而繁忙时的错误消息
- ViewMatchers.isDisplayingAtLeast() 适用于具有负比例的视图。
- 增强 WithIdMatcher 的错误消息
- 移除 waitForAtLeastOneActivityToBeResumed 中多余的等待。
- 为 ACTION_UP 设置正确的元状态
- 修复缺失的 androidx_test_espresso_contrib_drawer_layout_tag 字段 [#671]
- 改进 AndroidJUnitRunner 中的类路径扫描错误处理:忽略所有找不到类和链接错误(修复 #439)
- 在从 RunnerArgs 创建 RunListeners 之前初始化 InstrumentationRegistry
依赖项变更
- Truth:更新到 com.google.truth:truth:1.0 和 com.google.guava:guava:27.0.1-android
版本 1.3.0-rc03
2020 年 8 月 5 日
这是 AndroidX Test 1.3.0 的第三个发布候选版。它包含对以下库的更新
- Core 1.3.0-rc03
- Espresso 3.3.0-rc03
- 移除先前 rc+beta 构建中错误包含的一些尚未准备好发布的 API
- Intents 3.3.0-rc03
- 移除先前 rc+beta 构建中错误包含的一些尚未准备好发布的 API
- JUnit 1.1.2-rc03
- Monitor 1.3.0-rc03
- Orchestrator 1.3.0-rc03
- Runner 1.3.0-rc03
- Rules 1.3.0-rc03
- Truth 1.3.0-rc03
- Test Services 1.3.0-rc03
版本 1.3.0-rc02
2020 年 7 月 28 日
这是 AndroidX Test 1.3.0 的第二个发布候选版。它包含对以下库的更新
- Core 1.3.0-rc02
- 使 kotlin 包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#680]
- Espresso 3.3.0-rc02
- 修复缺失的 androidx_test_espresso_contrib_drawer_layout_tag 字段 [#671]
- Intents 3.3.0-rc02
- JUnit 1.1.2-rc02
- Monitor 1.3.0-rc02
- Orchestrator 1.3.0-rc02
- Runner 1.3.0-rc02
- Rules 1.3.0-rc02
- 添加 ActivityTestRule->ActivityScenario 的转换技巧
- Truth 1.3.0-rc02
- Test Services 1.3.0-rc02
版本 1.3.0-rc01
2020 年 5 月 28 日
这是 AndroidX Test 1.3.0 的发布候选版。它包含对以下库的更新
- Core 1.3.0-rc01
- Espresso 3.3.0-rc01
- 使包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#573]
- Intents 3.3.0-rc01
- JUnit 1.1.2-rc01
- Monitor 1.3.0-rc01
- 使包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#573]
- Orchestrator 1.3.0-rc01
- Runner 1.3.0-beta01
- 使包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#573]
- Rules 1.3.0-rc01
- 使包名唯一,修复使用 AGP 4.1 构建时日志垃圾信息问题 [#573]
- Truth 1.3.0-rc01
- Test Services 1.3.0-rc01
版本 1.3.0-beta02
2020 年 5 月 20 日
这是 AndroidX Test 1.3.0 的 Beta 版本。新的 API 不太可能更改。它包含对以下库的更新
- Core 1.3.0-beta02
- Espresso 3.3.0-beta02
- Intents 3.3.0-beta02
- JUnit 1.1.2-beta02
- Monitor 1.3.0-beta02
- Orchestrator 1.3.0-beta02
- Runner 1.3.0-beta01
- 修复使用 Orchestrator 运行参数化测试的问题 [#215, https://issuetracker.google.com/119838413]
- Rules 1.3.0-beta02
- Truth 1.3.0-beta02
- Test Services 1.3.0-beta02
- 修复在 API 29 上运行时出现“运行时权限对话框”的问题
版本 1.3.0-beta01
2020 年 4 月 20 日
这是 AndroidX Test 1.3.0 的 Beta 版本。新的 API 不太可能更改。它包含对以下库的更新
- Core 1.3.0-beta01
- Espresso 3.3.0-beta01
- 添加 ViewMatchers.isFocused()
- 增强 WithIdMatcher 的错误消息
- Intents 3.3.0-beta01
- 允许 Intents.release 无需 Intents.init
- JUnit 1.1.2-beta01
- Monitor 1.3.0-beta01
- Orchestrator 1.3.0-beta01
- Runner 1.3.0-beta01
- 仅当 RobolectricTestRunner 在类路径上时,才将其委托
- 通过 SdkSuppress#codeName 支持按预发布 SDK 过滤
- Rules 1.3.0-beta01
- 弃用 ActivityTestRule
- Truth 1.3.0-beta01
- 使 LocationSubject 覆盖 isEqualTo
- Test Services 1.3.0-beta01
版本 1.3.0-alpha05
2020 年 3 月 17 日
这是 AndroidX Test 1.3.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.3.0-alpha05
- 跳过 ActivityScenario 中用于空 Activity 的启动和结束动画。(修复 #411)
- 处理通过隐式 Intent 启动的 Activity。(修复 #496)
- Espresso 3.3.0-alpha05
- ViewMatchers.isDisplayingAtLeast() 适用于具有负比例的视图。
- 移除 waitForAtLeastOneActivityToBeResumed 中多余的等待。
- 为 ACTION_UP 设置正确的元状态
- Intents 3.3.0-alpha05
- JUnit 1.1.2-alpha05
- Monitor 1.3.0-alpha05
- Orchestrator 1.3.0-alpha05
- Runner 1.3.0-alpha05
- 扫描类路径以查找测试时,忽略所有 LinkageError 异常。(修复 #439)
- 在从 RunnerArgs 创建 RunListeners 之前初始化 InstrumentationRegistry
- Rules 1.3.0-alpha05
- Truth 1.3.0-alpha05
- Test Services 1.3.0-alpha05
版本 1.3.0-alpha04
2020 年 2 月 20 日
这是 AndroidX Test 1.3.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.3.0-alpha04
- Espresso 3.3.0-alpha04
- 改进 Espresso 因处理消息而不是空闲资源而繁忙时的错误消息
- Intents 3.3.0-alpha04
- JUnit 1.1.2-alpha04
- Monitor 1.3.0-alpha04
- Orchestrator 1.3.0-alpha04
- Runner 1.3.0-alpha04
- 修复 AndroidJUnitRunner,如果发生 StrictMode 违规,则将测试报告为失败
- 当 JUnit4 测试类格式错误时,添加额外信息以便于诊断
- Rules 1.3.0-alpha04
- Truth 1.3.0-alpha04
- Test Services 1.3.0-alpha04
- 在测试服务中包含测试存储服务
以下是 版本 1.3.0-alpha04 中包含的完整提交列表。
版本 1.3.0-alpha03
2019 年 12 月 3 日
这是 AndroidX Test 1.3.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.3.0-alpha03
- 支持 ActivityOptions in ActivityScenario
- Espresso 3.3.0-alpha03
- 修复启用 AccessibilityChecks 时测试出现 NoSuchMethodError 的问题 (#376)
- Intents 3.3.0-alpha03
- JUnit 1.1.2-alpha03
- Monitor 1.3.0-alpha03
- Orchestrator 1.3.0-alpha03
- Runner 1.3.0-alpha03
- 执行类路径扫描以查找测试时,忽略 NoClassDefFoundErrors
- 对未处理的异常添加更好的错误处理
- 允许通过 runner 参数选择退出“waitForActivitiesToComplete”
- Rules 1.3.0-alpha03
- Truth 1.3.0-alpha03
- 更新 Location 扩展以更好地处理 null。
- 向 BundleSubject 添加 stringArrayList 和 parcelableArrayList 方法
版本 1.2.1
版本 1.2.1-alpha02
2019 年 7 月 15 日
这是 AndroidX Test 1.2.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.2.1-alpha02
- 使 Activity 生命周期转换超时可配置
- Espresso 3.3.0-alpha02
- Intents 3.3.0-alpha02
- 添加 BundleMatchers.isEmpty() 和 isEmptyOrNull() 方法
- JUnit 1.1.2-alpha02
- Monitor 1.3.0-alpha02
- Orchestrator 1.3.0-alpha02
- Runner 1.3.0-alpha02
- Rules 1.3.0-alpha02
- Truth 1.3.0-alpha02
- 更新到 com.google.truth:truth:1.0 和 com.google.guava:guava:27.0.1-android
版本 1.2.1-alpha01
2019 年 6 月 17 日
这是 AndroidX Test 1.2.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.2.1-alpha01
- 包含工具链修复,解决了“MethodParameter 属性中的参数计数无效”构建警告
- Espresso 3.3.0-alpha01
- contrib:将 RecyclerView.findViewHolderForPosition 方法的使用替换为其替代方法
- Intents 3.3.0-alpha01
- JUnit 1.1.2-alpha01
- Monitor 1.3.0-alpha01
- Orchestrator 1.3.0-alpha01
- Runner 1.3.0-alpha01
- Rules 1.3.0-alpha01
- 允许 ServiceTestRule 的子类自定义超时
- Truth 1.3.0-alpha01
- 为 Location 添加 truth 扩展
版本 1.2.0
版本 1.2.0
2019 年 5 月 29 日
这是 AndroidX Test 1.2.0 的稳定版本。它包含对以下库的更新
- Core 1.2.0
- Espresso 3.2.0
- Intents 3.2.0
- JUnit 1.1.1
- Monitor 1.2.0
- Orchestrator 1.2.0
- Runner 1.2.0
- Rules 1.2.0
- Truth 1.2.0
版本 1.2.0-beta01
2019 年 5 月 6 日
这是 AndroidX Test 1.2.0 的 Beta 版本。它包含对以下库的更新
- Core 1.2.0-beta01
- 更优雅地处理在测试中使用多个 ActivityScenarios 的情况
- Espresso 3.2.0-beta01
- Intents 3.2.0-beta01
- JUnit 1.1.1-beta01
- Monitor 1.2.0-beta01
- Instrumentation.runOnMainSync() 将异常传播回调用线程
- Orchestrator 1.2.0-beta01
- Runner 1.2.0-beta01
- Rules 1.2.0-beta01
- Truth 1.2.0-beta01
版本 1.2.0-alpha05
2019 年 4 月 30 日
这是 AndroidX Test 1.2.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.2.0-alpha05
- 使 ActivityScenario#onActivity 可从主线程调用
- Espresso 3.2.0-alpha05
- 更多地去抖动 openActionBarOverflowOrOptionsMenu
- Intents 3.2.0-alpha05
- JUnit 1.1.1-alpha05
- Monitor 1.2.0-alpha05
- Orchestrator 1.2.0-alpha05
- Runner 1.2.0-alpha05
- Rules 1.2.0-alpha05
- Truth 1.2.0-alpha05
- 更新到上游 Google Truth 0.44
版本 1.2.0-alpha04
2019 年 4 月 18 日
这是 AndroidX Test 1.2.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.2.0-alpha04
- Espresso 3.2.0-alpha04
- 去抖动 openActionBarOverflowOrOptionsMenu
- 在 androidx.test 中添加一个 hook,用于模拟本地测试环境的窗口焦点变化
- Intents 3.2.0-alpha04
- JUnit 1.1.1-alpha04
- Monitor 1.2.0-alpha04
- Orchestrator 1.2.0-alpha04
- Runner 1.2.0-alpha04
- 使 androidx.test 在旧版 android.test 类不存在时也能工作
- Rules 1.2.0-alpha04
- Truth 1.2.0-alpha04
版本 1.2.0-alpha03
2019 年 4 月 7 日
这是 AndroidX Test 1.2.0 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Core 1.2.0-alpha03
- 向 ActivityScenario 添加 getState() API
- Espresso 3.2.0-alpha03
- 将 WithTagKeyMatcher 转换为接受 Matcher<?> 而不是 Matcher
- 更新到 Espresso 设置文档的链接
- 修复在不同区域设置中运行时调试日志记录问题
- 将 WithTagKeyMatcher 转换为接受 Matcher<?> 而不是 Matcher
- Intents 3.2.0-alpha03
- JUnit 1.1.1-alpha03
- Monitor 1.2.0-alpha03
- 再次尝试清除异常处理程序以防止 Robolectric 中的内存泄漏。
- Orchestrator 1.2.0-alpha03
- Runner 1.2.0-alpha03
- 添加 tests_regex AJUR 选项,用于运行匹配给定正则表达式的测试。
- Rules 1.2.0-alpha03
- Truth 1.2.0-alpha03
- 公开 ParcelableSubject API
- 添加 BundleSubject#longInt
- 添加 IntentSubject#hasComponent
版本 1.1.1
版本 1.1.1-alpha02
2019 年 3 月 7 日
这是 AndroidX Test 1.1.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Espresso 3.2.0-alpha02
- Intents 3.2.0-alpha02
- 添加 IntentMatchers#filterEquals
- 修复 Intents#intended() 中的 activity 生命周期计时 bug。它现在在检查 activity 状态之前使主 looper 空闲。
- Runner 1.1.2-alpha02
- 允许同时指定包过滤器和类过滤器。
- Truth 1.2.0-alpha02
- JUnit 1.1.1-alpha02
- Core 1.1.1-alpha02
- 当 Activity 无法解析时抛出 RuntimeException。
- Monitor 1.1.2-alpha02
- 清除对未捕获异常处理程序的引用,以防止 Robolectric 中的内存泄漏。
- Rules 1.1.2-alpha02
- Orchestrator 1.1.2-alpha02
版本 1.1.1-alpha01
2019 年 1 月 30 日
这是 AndroidX Test 1.1.1 的 Alpha 版本。新的 API 可能会更改。它包含对以下库的更新
- Espresso 3.1.2-alpha01
- 添加了方法 AccessibilityChecks.disable()。
- Intents 3.1.2-alpha01
- 添加 IntentMatchers#hasDataString
- 修复 Intents#intended() 中的 activity 生命周期计时 bug。它现在在检查 activity 状态之前使主 looper 空闲。
- Runner 1.1.2-alpha01
- AndroidJUnitRunner 现在接受 -e annotation 选项中的逗号分隔类列表,用于仅运行具有所有给定注释的测试
- Truth 1.1.1-alpha01
- 向 IntentSubject 添加 filtersEquallyTo(),用于使用 Intent.filterEquals() 比较 Intent。
- JUnit 1.1.1-alpha01
- Core 1.1.1-alpha01
- Monitor 1.1.2-alpha01
- Rules 1.1.2-alpha01
- Orchestrator 1.1.2-alpha01
版本 1.1.0
版本 1.1.0
2018 年 12 月 13 日
这是 AndroidX Test 1.1.0 的稳定版本。它包含对以下库的更新
- Espresso 3.1.1
- Runner 1.1.1
- Rules 1.1.1
- Monitor 1.1.
- AndroidTestOrchestrator 1.1.1
- Core 1.1.0
- Truth 1.1.0
JUnit 1.1.0
Core 1.1.0
- 使 ActivityScenario 支持启动另一个 Activity 的 Activity
版本 1.1.0-beta01
2018 年 12 月 6 日
这是 AndroidX Test 1.1.0 的 beta01 版本。它包含对以下库的更新
- Core 1.1.0-beta01
- 新的 core-ktx kotlin 扩展 artifact!包含一个对 kotlin 友好的 ActivityScenario.launchActivity API
- 新的 ActivityScenario API,用于使用自定义 Intent 启动 Activity
- 新的 ActivityScenario API,用于接收 Activity 结果
- 使 ActivityScenario 可关闭
- Espresso3.1.1-beta01
- 修改 withResourceNameMatcher 和 HumanReadables 以兼容 API 28。
- 更新 ReplaceTextAction 的描述以包含 stringToBeSet
- 支持 Robolectric 暂停 looper 模式下的 Espresso。
- JUnit 1.1.0-beta01
- 新的 ActivityScenarioRule API,用于在测试设置和拆卸时自动启动和关闭 Activity
- 新的 junit-ktx kotlin 扩展 artifact!包含一个对 kotlin 友好的 ActivityScenarioRule API
- Runner 1.1.1-beta01
- 使 -e package 和 -e testFile 在接收包时的行为保持一致
- Truth 1.1.0-beta01
- 添加 bool、parcelable 和 parcelableAsType BundleSubject API
- Rules 1.1.1-beta01
- Monitor 1.1.1-beta01
- AndroidTestOrchestrator 1.1.1-beta01
版本 1.0.0
版本 1.0.0
2018 年 10 月 24 日
- 所有库
- 设置 minSdkVersion 为 14,targetSdkVersion 为 28
- Espresso 3.1.0
- 修复 withContentDescription 以适用于非字符串类型
- 添加对在 Robolectric 上使用 Espresso 的支持
- 问题 73044169:当 textAllCaps 启用时,Espresso ViewMatchers.withText 不起作用
- 添加对注入一系列运动事件的支持
- Intents
- 添加用于检索 Intent 列表的 beta API。旨在与新的 truth 断言一起使用
- Runner 1.1.0
- 添加对即时应用的支持
- 弃用 androidx.test.runner.AndroidJUnit4,并替换为 androidx.test.ext.junit.runners.AndroidJUnit4
- Monitor 1.1.0
- 弃用 androidx.test.InstrumentationRegistry,并替换为 androidx.test.platform.app.InstrumentationRegistry 和 androidx.test.core.app.ApplicationProvider
- AndroidTestOrchestrator 1.1.0
- 仅当同时传递“coverage”和“coverageFilePath”参数时,才启用 orchestrator 覆盖处理。
- 仅当设置了 -debug 但未列出 ATO 测试用例时才等待调试器。添加了一个新的 orchestratorDebug 标志用于调试 orchestrator 本身
- Core 1.0.0
- 新 artifact!包含支持本地和设备上测试的新 API,用于
- 检索上下文:ApplicationProvider
- 控制 Activity 生命周期:ActivityScenario(beta)
- MotionEvent、PackageInfo 的构建器
- Parceables 实用类
- 新 artifact!包含支持本地和设备上测试的新 API,用于
- Truth 1.0.0
- 新 artifact!包含 Notification、Intent、Bundle、Parcelable 和 MotionEvent 的自定义 truth subjects
- JUnit 1.0.0
- 新 artifact!包含 JUnit runner 类 androidx.test.ext.junit.runners.AndroidJUnit4,支持本地和设备上测试。