Updated on 2026-08-14

This commit is contained in:
Tangem 2025-06-24 15:00:23 +03:00
parent 37efabe359
commit 4fe300d8cc
3 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,7 @@ android {
namespace = "com.tangem.wallet" namespace = "com.tangem.wallet"
testOptions { testOptions {
animationsDisabled = true animationsDisabled = true
execution = "ANDROIDX_TEST_ORCHESTRATOR"
} }
packaging { packaging {
jniLibs { jniLibs {
@ -345,6 +346,8 @@ dependencies {
implementation(deps.listenableFuture) implementation(deps.listenableFuture)
implementation(deps.mlKit.barcodeScanning) implementation(deps.mlKit.barcodeScanning)
androidTestUtil(deps.test.orchestrator)
/** Leakcanary */ /** Leakcanary */
debugImplementation(deps.leakcanary) debugImplementation(deps.leakcanary)

View file

@ -111,6 +111,7 @@ kaspresso = "1.5.4"
kaspresso-compose = "1.5.4" kaspresso-compose = "1.5.4"
compose-junit = "1.6.2" compose-junit = "1.6.2"
hamcrest = "2.2" hamcrest = "2.2"
orchestrator = "1.5.1"
# endregion Testing # endregion Testing
[plugins] [plugins]
@ -212,6 +213,7 @@ test-compose-junit = { module = "androidx.compose.ui:ui-test-junit4", version.re
test-hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" } test-hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" }
test-hilt = { module = "com.google.dagger:hilt-android-testing", version.ref = "hilt" } test-hilt = { module = "com.google.dagger:hilt-android-testing", version.ref = "hilt" }
test-hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" } test-hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
test-orchestrator = { module = "androidx.test:orchestrator", version.ref = "orchestrator" }
# endregion Test # endregion Test
# region Other # region Other

View file

@ -38,6 +38,7 @@ private fun AppExtension.configureDefaultConfig(project: Project) {
buildFeatures.buildConfig = true buildFeatures.buildConfig = true
testInstrumentationRunner = "com.tangem.common.HiltTestRunner" testInstrumentationRunner = "com.tangem.common.HiltTestRunner"
testInstrumentationRunnerArguments["clearPackageData"] = "true"
} }
} }