Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-04 14:05:23 +04:00
parent eeb74486ef
commit 7c9112fa70
79 changed files with 12 additions and 428 deletions

View file

@ -107,11 +107,6 @@ configurations.all {
configurations.androidTestImplementation { configurations.androidTestImplementation {
exclude(module = "protobuf-lite") exclude(module = "protobuf-lite")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.domain.legacy) implementation(projects.domain.legacy)
implementation(projects.libs.blockchainSdk) implementation(projects.libs.blockchainSdk)
@ -425,7 +420,6 @@ dependencies {
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(deps.test.junit) testImplementation(deps.test.junit)
testRuntimeOnly(deps.test.junit5.engine)
androidTestImplementation(deps.test.junit.android) androidTestImplementation(deps.test.junit.android)
androidTestImplementation(deps.test.espresso) androidTestImplementation(deps.test.espresso)
androidTestImplementation(deps.test.espresso.intents) androidTestImplementation(deps.test.espresso.intents)

View file

@ -30,15 +30,10 @@ dependencies {
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
// region DI // region DI
implementation(deps.hilt.android) implementation(deps.hilt.android)
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
// end // end
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -34,12 +34,7 @@ dependencies {
/* Tests */ /* Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.common.ui" namespace = "com.tangem.common.ui"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.common) api(projects.common)
@ -56,5 +51,4 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -3,11 +3,6 @@ plugins {
alias(deps.plugins.kotlin.kapt) alias(deps.plugins.kotlin.kapt)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** DI */ /** DI */
@ -32,5 +27,4 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -62,11 +62,6 @@ tasks.named("preBuild") {
tasks.withType<Detekt>().configureEach { tasks.withType<Detekt>().configureEach {
exclude { it.file.absolutePath.contains("/build/generated/") } exclude { it.file.absolutePath.contains("/build/generated/") }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** DI */ /** DI */
implementation(deps.hilt.android) implementation(deps.hilt.android)
@ -85,5 +80,4 @@ dependencies {
implementation(projects.core.utils) implementation(projects.core.utils)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -58,11 +58,6 @@ androidComponents {
variant.sources.java?.addGeneratedSourceDirectory(taskProvider, GenerateEnvironmentConfigTask::outputDir) variant.sources.java?.addGeneratedSourceDirectory(taskProvider, GenerateEnvironmentConfigTask::outputDir)
} }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Project */ /** Project */
@ -131,5 +126,4 @@ dependencies {
ksp(deps.room.compiler) ksp(deps.room.compiler)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -86,11 +86,6 @@ abstract class VerifyDesignTokensTask : DefaultTask() {
.joinToString("") { b: Byte -> b.toInt().and(0xFF).toString(16).padStart(2, '0') } .joinToString("") { b: Byte -> b.toInt().and(0xFF).toString(16).padStart(2, '0') }
} }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
android { android {
namespace = "com.tangem.core.ui" namespace = "com.tangem.core.ui"
@ -174,5 +169,4 @@ dependencies {
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -4,11 +4,6 @@ plugins {
alias(deps.plugins.kotlin.serialization) alias(deps.plugins.kotlin.serialization)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region DI // region DI
@ -27,7 +22,6 @@ dependencies {
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.account" namespace = "com.tangem.data.account"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Common // region Project - Common
@ -70,7 +65,6 @@ dependencies {
// region Test // region Test
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.turbine) testImplementation(deps.test.turbine)
// endregion // endregion
} }

View file

@ -38,12 +38,7 @@ dependencies {
/* Tests */ /* Tests */
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.turbine) testImplementation(deps.test.turbine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.common" namespace = "com.tangem.data.common"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/* Core */ /* Core */
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -49,6 +44,5 @@ dependencies {
/* Test */ /* Test */
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.moshi) testImplementation(deps.moshi)
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.dynamicaddresses" namespace = "com.tangem.data.dynamicaddresses"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Core // region Project - Core
implementation(projects.core.configToggles) implementation(projects.core.configToggles)
@ -44,7 +39,6 @@ dependencies {
// endregion // endregion
// region Testing // region Testing
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.test.core) testImplementation(projects.test.core)
// endregion // endregion
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.networks" namespace = "com.tangem.data.networks"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Core // region Project - Core
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -49,7 +44,6 @@ dependencies {
// endregion // endregion
// region Tests // region Tests
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(tangemDeps.blockchain) testImplementation(tangemDeps.blockchain)
testImplementation(tangemDeps.card.core) testImplementation(tangemDeps.card.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.news" namespace = "com.tangem.data.news"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Core // region Project - Core
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -44,7 +39,6 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -11,11 +11,6 @@ plugins {
android { android {
namespace = "com.tangem.data.nft" namespace = "com.tangem.data.nft"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Project - Data */ /** Project - Data */
@ -60,5 +55,4 @@ dependencies {
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -43,15 +43,10 @@ dependencies {
// region tests // region tests
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.moshi) testImplementation(deps.moshi)
testImplementation(deps.moshi.kotlin) testImplementation(deps.moshi.kotlin)
// endregion // endregion
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -30,15 +30,10 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.turbine) testImplementation(deps.test.turbine)
testImplementation(deps.moshi) testImplementation(deps.moshi)
testImplementation(deps.moshi.kotlin) testImplementation(deps.moshi.kotlin)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -30,11 +30,7 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.data.quotes" namespace = "com.tangem.data.quotes"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Core // region Project - Core
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -47,7 +42,6 @@ dependencies {
// endregion // endregion
// region Tests // region Tests
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
// endregion // endregion

View file

@ -12,11 +12,6 @@ plugins {
android { android {
namespace = "com.tangem.data.settings" namespace = "com.tangem.data.settings"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -34,7 +29,6 @@ dependencies {
// region Test // region Test
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
// endregion // endregion
// region Others dependencies // region Others dependencies

View file

@ -12,11 +12,6 @@ plugins {
android { android {
namespace = "com.tangem.data.staking" namespace = "com.tangem.data.staking"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core modules */ /** Core modules */
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -69,7 +64,6 @@ dependencies {
// endregion // endregion
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(tangemDeps.card.core) testImplementation(tangemDeps.card.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.data.swap" namespace = "com.tangem.data.swap"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core */ /** Core */
implementation(projects.core.datasource) implementation(projects.core.datasource)
@ -65,7 +60,6 @@ dependencies {
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
/** Test */ /** Test */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(tangemDeps.card.core) testImplementation(tangemDeps.card.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)

View file

@ -11,11 +11,6 @@ plugins {
android { android {
namespace = "com.tangem.data.tokens" namespace = "com.tangem.data.tokens"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project - Data // region Project - Data
@ -78,7 +73,6 @@ dependencies {
// endregion // endregion
// region Tests // region Tests
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
// endregion // endregion

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.data.transaction" namespace = "com.tangem.data.transaction"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Tangem SDKs */ /** Tangem SDKs */
@ -50,7 +45,6 @@ dependencies {
/** tests */ /** tests */
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)

View file

@ -21,11 +21,6 @@ android {
} }
} }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Project - Data */ /** Project - Data */
@ -84,6 +79,5 @@ dependencies {
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
/** Test */ /** Test */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.test.core) testImplementation(projects.test.core)
} }

View file

@ -64,11 +64,6 @@ dependencies {
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.turbine) testImplementation(deps.test.turbine)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -45,7 +45,6 @@ dependencies {
implementation(deps.arrow.core) implementation(deps.arrow.core)
/** Testing libraries */ /** Testing libraries */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
} }

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.data.wallet" namespace = "com.tangem.data.wallet"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.data.common) implementation(projects.data.common)
@ -53,5 +48,4 @@ dependencies {
/** tests */ /** tests */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.data.yield.supply" namespace = "com.tangem.data.yield.supply"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Tangem SDKs */ /** Tangem SDKs */
@ -48,7 +43,6 @@ dependencies {
/** tests */ /** tests */
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)

View file

@ -3,11 +3,6 @@ plugins {
alias(deps.plugins.kotlin.serialization) alias(deps.plugins.kotlin.serialization)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.domain.common) api(projects.domain.common)
@ -23,6 +18,5 @@ dependencies {
// region Test libraries // region Test libraries
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.test.mock) testImplementation(projects.test.mock)
testRuntimeOnly(deps.test.junit5.engine)
// endregion // endregion
} }

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.account.status" namespace = "com.tangem.domain.account.status"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.domain.account) api(projects.domain.account)
api(projects.domain.core) api(projects.domain.core)
@ -48,7 +43,6 @@ dependencies {
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
// end // end
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.test.mock) testImplementation(projects.test.mock)

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.card" namespace = "com.tangem.domain.card"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.core.analytics.models) implementation(projects.core.analytics.models)
implementation(projects.core.error) implementation(projects.core.error)
@ -37,7 +32,6 @@ dependencies {
} }
/** Testing libraries */ /** Testing libraries */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
} }

View file

@ -13,11 +13,6 @@ dependencies {
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.dynamicaddresses" namespace = "com.tangem.domain.dynamicaddresses"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.domain.core) api(projects.domain.core)
api(projects.domain.dynamicAddresses.models) api(projects.domain.dynamicAddresses.models)
@ -26,7 +21,6 @@ dependencies {
} }
implementation(tangemDeps.card.core) implementation(tangemDeps.card.core)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
} }

View file

@ -18,12 +18,7 @@ dependencies {
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.features" namespace = "com.tangem.domain.features"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.core.datasource) implementation(projects.core.datasource)
implementation(projects.core.utils) implementation(projects.core.utils)
@ -46,7 +41,6 @@ dependencies {
/** Testing libraries */ /** Testing libraries */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -32,11 +32,6 @@ dependencies {
/* Tests */ /* Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -4,11 +4,6 @@ plugins {
alias(deps.plugins.ksp) alias(deps.plugins.ksp)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.domain.core) api(projects.domain.core)
api(projects.core.utils) api(projects.core.utils)
@ -24,5 +19,4 @@ dependencies {
implementation(deps.arrow.core) implementation(deps.arrow.core)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -26,13 +26,8 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
// end // end
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -2,11 +2,6 @@ plugins {
alias(deps.plugins.kotlin.jvm) alias(deps.plugins.kotlin.jvm)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Domain modules */ /** Domain modules */
api(projects.domain.core) api(projects.domain.core)
@ -14,5 +9,4 @@ dependencies {
/** Test libraries */ /** Test libraries */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -3,11 +3,6 @@ plugins {
alias(deps.plugins.kotlin.serialization) alias(deps.plugins.kotlin.serialization)
id("configuration") id("configuration")
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core modules */ /** Core modules */
implementation(projects.core.analytics.models) implementation(projects.core.analytics.models)
@ -24,7 +19,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.staking" namespace = "com.tangem.domain.staking"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
api(projects.domain.staking.models) api(projects.domain.staking.models)
api(projects.domain.core) api(projects.domain.core)
@ -35,7 +30,6 @@ dependencies {
implementation(projects.libs.crypto) implementation(projects.libs.crypto)
implementation(projects.libs.blockchainSdk) implementation(projects.libs.blockchainSdk)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(tangemDeps.card.core) testImplementation(tangemDeps.card.core)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)

View file

@ -32,11 +32,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.tokens" namespace = "com.tangem.domain.tokens"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Project - Domain */ /** Project - Domain */
@ -62,7 +57,6 @@ dependencies {
} }
/** Tests */ /** Tests */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
} }

View file

@ -41,12 +41,7 @@ dependencies {
implementation(projects.domain.notifications) implementation(projects.domain.notifications)
api(projects.domain.networks) api(projects.domain.networks)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.test.mock) testImplementation(projects.test.mock)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -8,11 +8,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.visa" namespace = "com.tangem.domain.visa"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Project - Core */ /** Project - Core */
api(projects.core.pagination) api(projects.core.pagination)
@ -42,7 +37,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)

View file

@ -37,7 +37,6 @@ dependencies {
/** Testing libraries */ /** Testing libraries */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -60,13 +60,8 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
// end // end
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.domain.yield.supply" namespace = "com.tangem.domain.yield.supply"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core */ /** Core */
implementation(projects.core.ui) implementation(projects.core.ui)
@ -41,7 +36,6 @@ dependencies {
/** tests */ /** tests */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.features.approval.impl" namespace = "com.tangem.features.approval.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Feature */ /** Feature */
@ -64,7 +59,6 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
// endregion // endregion

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.commonfeatures.impl" namespace = "com.tangem.features.commonfeatures.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.commonFeatures.api) implementation(projects.features.commonFeatures.api)
@ -86,7 +81,6 @@ dependencies {
implementation(deps.hilt.android) implementation(deps.hilt.android)
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(projects.common.test) testImplementation(projects.common.test)
testImplementation(projects.test.core) testImplementation(projects.test.core)
testImplementation(projects.test.mock) testImplementation(projects.test.mock)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.createwalletstart.impl" namespace = "com.tangem.features.createwalletstart.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.createWalletStart.api) implementation(projects.features.createWalletStart.api)
@ -79,7 +74,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.details.impl" namespace = "com.tangem.features.details.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/* Project - API */ /* Project - API */
@ -87,7 +82,6 @@ dependencies {
/* Test */ /* Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -16,11 +16,6 @@ android {
} }
} }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/* Project - API */ /* Project - API */
api(projects.features.feed.api) api(projects.features.feed.api)
@ -109,7 +104,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.hotwallet.impl" namespace = "com.tangem.features.hotwallet.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.hotWallet.api) implementation(projects.features.hotWallet.api)
@ -85,7 +80,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.onboarding.v2.impl" namespace = "com.tangem.features.onboarding.v2.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.onboardingV2.api) implementation(projects.features.onboardingV2.api)
@ -97,7 +92,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -42,6 +42,5 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
} }

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.feature.rating.impl" namespace = "com.tangem.feature.rating.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
implementation(projects.features.rating.api) implementation(projects.features.rating.api)
@ -30,7 +25,6 @@ dependencies {
kapt(deps.hilt.kapt) kapt(deps.hilt.kapt)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -7,11 +7,6 @@ plugins {
android { android {
namespace = "com.tangem.features.send.v2.api" namespace = "com.tangem.features.send.v2.api"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core */ /** Core */
implementation(projects.core.decompose) implementation(projects.core.decompose)
@ -46,7 +41,6 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.send.v2.impl" namespace = "com.tangem.features.send.v2.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.sendV2.api) implementation(projects.features.sendV2.api)
@ -95,7 +90,6 @@ dependencies {
// region Tests // region Tests
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(projects.common.test) testImplementation(projects.common.test)

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.features.staking.impl" namespace = "com.tangem.features.staking.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** AndroidX */ /** AndroidX */
implementation(deps.androidx.fragment.ktx) implementation(deps.androidx.fragment.ktx)
@ -95,7 +90,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.features.survey.impl" namespace = "com.tangem.features.survey.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/* Project - API */ /* Project - API */
implementation(projects.features.survey.api) implementation(projects.features.survey.api)
@ -54,7 +49,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -96,11 +96,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -12,11 +12,6 @@ plugins {
android { android {
namespace = "com.tangem.feature.swap.data" namespace = "com.tangem.feature.swap.data"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** AndroidX */ /** AndroidX */
@ -68,5 +63,4 @@ dependencies {
/** Test */ /** Test */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -14,11 +14,6 @@ android {
unitTests.isIncludeAndroidResources = false unitTests.isIncludeAndroidResources = false
} }
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Libs */ /** Libs */
implementation(projects.libs.crypto) implementation(projects.libs.crypto)
@ -82,5 +77,4 @@ dependencies {
/** Test */ /** Test */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.feature.swap.presentation" namespace = "com.tangem.feature.swap.presentation"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Api */ /** Api */
implementation(projects.features.commonFeatures.api) implementation(projects.features.commonFeatures.api)
@ -119,5 +114,4 @@ dependencies {
/** Test */ /** Test */
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
} }

View file

@ -64,13 +64,8 @@ dependencies {
implementation(deps.kotlin.immutable.collections) implementation(deps.kotlin.immutable.collections)
/** Test */ /** Test */
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.tangempay.onboarding.impl" namespace = "com.tangem.features.tangempay.onboarding.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core */ /** Core */
implementation(projects.core.analytics) implementation(projects.core.analytics)
@ -65,7 +60,6 @@ dependencies {
/** Test */ /** Test */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.tokendetails.impl" namespace = "com.tangem.features.tokendetails.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** AndroidX */ /** AndroidX */
implementation(deps.androidx.activity.compose) implementation(deps.androidx.activity.compose)
@ -118,7 +113,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.txhistory.impl" namespace = "com.tangem.features.txhistory.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/* Project - API */ /* Project - API */
implementation(projects.features.txhistory.api) implementation(projects.features.txhistory.api)
@ -66,7 +61,6 @@ dependencies {
/* Tests */ /* Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
} }

View file

@ -161,12 +161,7 @@ dependencies {
/** Test libraries */ /** Test libraries */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -79,10 +79,5 @@ dependencies {
/** Test libraries */ /** Test libraries */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.features.yield.supply.impl" namespace = "com.tangem.features.yield.supply.impl"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Feature */ /** Feature */
@ -86,7 +81,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)

View file

@ -10,11 +10,6 @@ plugins {
android { android {
namespace = "com.tangem.lib.auth" namespace = "com.tangem.lib.auth"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
/** Core */ /** Core */
implementation(projects.core.configToggles) implementation(projects.core.configToggles)
@ -43,7 +38,6 @@ dependencies {
/** Tests */ /** Tests */
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)

View file

@ -54,10 +54,6 @@ dependencies {
testImplementation(deps.test.coroutine) testImplementation(deps.test.coroutine)
testImplementation(deps.test.junit5) testImplementation(deps.test.junit5)
testRuntimeOnly(deps.test.junit5.engine)
testImplementation(deps.test.mockk) testImplementation(deps.test.mockk)
testImplementation(deps.test.truth) testImplementation(deps.test.truth)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
} }

View file

@ -9,11 +9,6 @@ plugins {
android { android {
namespace = "com.tangem.lib.crypto" namespace = "com.tangem.lib.crypto"
} }
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
dependencies { dependencies {
// region Project // region Project
@ -32,6 +27,5 @@ dependencies {
// region Test libraries // region Test libraries
testImplementation(projects.test.core) testImplementation(projects.test.core)
testRuntimeOnly(deps.test.junit5.engine)
// endregion // endregion
} }

View file

@ -5,5 +5,5 @@ import org.gradle.api.Project
internal fun Project.configure() { internal fun Project.configure() {
configureKotlinCompilerOptions() configureKotlinCompilerOptions()
configureDetektRules() configureDetektRules()
configureTestLogging() configureUnitTests()
} }

View file

@ -1,5 +1,6 @@
package com.tangem.plugin.configuration.configurations package com.tangem.plugin.configuration.configurations
import com.tangem.plugin.configuration.utils.findLibrary
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.tasks.testing.Test import org.gradle.api.tasks.testing.Test
import org.gradle.api.tasks.testing.TestDescriptor import org.gradle.api.tasks.testing.TestDescriptor
@ -9,9 +10,18 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent import org.gradle.api.tasks.testing.logging.TestLogEvent
import java.io.Serializable import java.io.Serializable
internal fun Project.configureTestLogging() { internal fun Project.configureUnitTests() {
// JUnit 5 (Jupiter) runtime engine — required for the JUnit Platform to discover & run Jupiter tests.
// Paired with useJUnitPlatform() below so modules never end up with the platform but no engine
// (which silently runs zero tests). The Jupiter API itself is provided per-module via :test:core
// or an explicit deps.test.junit5 declaration.
dependencies.add("testRuntimeOnly", findLibrary("test-junit5-engine"))
tasks.withType(Test::class.java).configureEach { tasks.withType(Test::class.java).configureEach {
println("Test task scheduled: $path") println("Test task scheduled: $path")
// Run unit tests on the JUnit Platform (JUnit 5 / Jupiter). Without this the default JUnit 4
// runner is used, which does not discover `org.junit.jupiter.api.Test` tests.
useJUnitPlatform()
testLogging { testLogging {
exceptionFormat = TestExceptionFormat.FULL exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true showStandardStreams = true