test: add accessibility tests for RecordsScreen and PlayerScreen

This commit is contained in:
Antoine Jaury committed 2026-10-23 15:04:57 +02:00
1 parent abeb484258
commit 2c1de5cf37
4 files changed
+195

No files matched your search

+20
View File
@@ -6,6 +6,16 @@ plugins {
kotlin {
androidLibrary {
namespace = "bzh.ajaury.chombev.records"
// Packages the Compose resources (strings of the screens) into the device test APK.
androidResources {
enable = true
}
// Accessibility tests: they run the Accessibility Test Framework checks, which need an
// Android device or emulator on API 34+ (Robolectric does not support them).
withDeviceTestBuilder {}.configure {
instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
}
sourceSets {
@@ -45,6 +55,16 @@ kotlin {
implementation(libs.koin.core.viewmodel)
implementation(libs.koin.compose.viewmodel)
}
getByName("androidDeviceTest").dependencies {
implementation(libs.kotlin.test)
implementation(libs.androidx.testRunner)
// Espresso 3.5, which Compose UI tests depend on, breaks on API 37 (InputManager.getInstance).
implementation(libs.androidx.espressoCore)
implementation(libs.compose.uiTest)
implementation(libs.compose.uiTestAccessibility)
// Declares the activity the UI tests host their content in.
implementation(libs.compose.uiTestManifest)
}
}
}