From 7c9112fa70dae4621568d9fcd4f252c82645ee5e Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 4 Jun 2026 14:05:23 +0400 Subject: [PATCH] Updated on 2026-08-14 --- app/build.gradle.kts | 6 ------ common/build.gradle.kts | 5 ----- common/routing/build.gradle.kts | 5 ----- common/ui/build.gradle.kts | 6 ------ core/analytics/build.gradle.kts | 6 ------ core/config-toggles/build.gradle.kts | 6 ------ core/datasource/build.gradle.kts | 6 ------ core/ui/build.gradle.kts | 6 ------ core/utils/build.gradle.kts | 6 ------ data/account/build.gradle.kts | 6 ------ data/blockaid/build.gradle.kts | 5 ----- data/common/build.gradle.kts | 6 ------ data/dynamic-addresses/build.gradle.kts | 6 ------ data/networks/build.gradle.kts | 6 ------ data/news/build.gradle.kts | 6 ------ data/nft/build.gradle.kts | 6 ------ data/notifications/build.gradle.kts | 5 ----- data/push-notification-preferences/build.gradle.kts | 5 ----- data/qr-scanning/build.gradle.kts | 4 ---- data/quotes/build.gradle.kts | 6 ------ data/settings/build.gradle.kts | 6 ------ data/staking/build.gradle.kts | 6 ------ data/swap/build.gradle.kts | 6 ------ data/tokens/build.gradle.kts | 6 ------ data/transaction/build.gradle.kts | 6 ------ data/visa/build.gradle.kts | 6 ------ data/wallet-connect/build.gradle.kts | 5 ----- data/wallet-manager/build.gradle.kts | 1 - data/wallets/build.gradle.kts | 6 ------ data/yield-supply/build.gradle.kts | 6 ------ domain/account/build.gradle.kts | 6 ------ domain/account/status/build.gradle.kts | 6 ------ domain/card/build.gradle.kts | 6 ------ domain/core/build.gradle.kts | 5 ----- domain/dynamic-addresses/build.gradle.kts | 6 ------ domain/hot-wallet/build.gradle.kts | 5 ----- domain/legacy/build.gradle.kts | 6 ------ domain/manage-tokens/build.gradle.kts | 5 ----- domain/models/build.gradle.kts | 6 ------ domain/notifications/build.gradle.kts | 5 ----- domain/offramp/build.gradle.kts | 6 ------ domain/onramp/build.gradle.kts | 6 ------ domain/staking/build.gradle.kts | 6 ------ domain/swap/build.gradle.kts | 5 ----- domain/tokens/build.gradle.kts | 6 ------ domain/transaction/build.gradle.kts | 5 ----- domain/visa/build.gradle.kts | 6 ------ domain/wallet-manager/build.gradle.kts | 1 - domain/wallets/build.gradle.kts | 5 ----- domain/yield-supply/build.gradle.kts | 6 ------ features/approval/impl/build.gradle.kts | 6 ------ features/common-features/impl/build.gradle.kts | 6 ------ features/create-wallet-start/impl/build.gradle.kts | 6 ------ features/details/impl/build.gradle.kts | 6 ------ features/feed/impl/build.gradle.kts | 6 ------ features/hot-wallet/impl/build.gradle.kts | 6 ------ features/onboarding-v2/impl/build.gradle.kts | 6 ------ features/promo-banners/impl/build.gradle.kts | 1 - features/rating/impl/build.gradle.kts | 6 ------ features/send-v2/api/build.gradle.kts | 6 ------ features/send-v2/impl/build.gradle.kts | 6 ------ features/staking/impl/build.gradle.kts | 6 ------ features/survey/impl/build.gradle.kts | 6 ------ features/swap-v2/impl/build.gradle.kts | 5 ----- features/swap/data/build.gradle.kts | 6 ------ features/swap/domain/build.gradle.kts | 6 ------ features/swap/impl/build.gradle.kts | 6 ------ features/tangempay/details/impl/build.gradle.kts | 5 ----- features/tangempay/onboarding/impl/build.gradle.kts | 6 ------ features/tokendetails/impl/build.gradle.kts | 6 ------ features/txhistory/impl/build.gradle.kts | 6 ------ features/wallet/impl/build.gradle.kts | 5 ----- features/walletconnect/impl/build.gradle.kts | 5 ----- features/yield-supply/impl/build.gradle.kts | 6 ------ libs/auth/build.gradle.kts | 6 ------ libs/blockchain-sdk/build.gradle.kts | 4 ---- libs/crypto/build.gradle.kts | 6 ------ .../configurations/ProjectConfigurations.kt | 2 +- .../configurations/TestConfigurations.kt | 12 +++++++++++- 79 files changed, 12 insertions(+), 428 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9d754f3add..2db67f53a3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -107,11 +107,6 @@ configurations.all { configurations.androidTestImplementation { exclude(module = "protobuf-lite") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.domain.legacy) implementation(projects.libs.blockchainSdk) @@ -425,7 +420,6 @@ dependencies { testImplementation(projects.test.core) testImplementation(projects.common.test) testImplementation(deps.test.junit) - testRuntimeOnly(deps.test.junit5.engine) androidTestImplementation(deps.test.junit.android) androidTestImplementation(deps.test.espresso) androidTestImplementation(deps.test.espresso.intents) diff --git a/common/build.gradle.kts b/common/build.gradle.kts index f8bbd9c304..75f81bff56 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -30,15 +30,10 @@ dependencies { testImplementation(projects.test.core) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) // region DI implementation(deps.hilt.android) kapt(deps.hilt.kapt) // end -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/common/routing/build.gradle.kts b/common/routing/build.gradle.kts index 491a201fa4..965ece8564 100644 --- a/common/routing/build.gradle.kts +++ b/common/routing/build.gradle.kts @@ -34,12 +34,7 @@ dependencies { /* Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/common/ui/build.gradle.kts b/common/ui/build.gradle.kts index 0cd3cd3495..c372622a90 100644 --- a/common/ui/build.gradle.kts +++ b/common/ui/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.common.ui" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.common) @@ -56,5 +51,4 @@ dependencies { /** Tests */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/core/analytics/build.gradle.kts b/core/analytics/build.gradle.kts index 60348ec1a4..d5612594b1 100644 --- a/core/analytics/build.gradle.kts +++ b/core/analytics/build.gradle.kts @@ -3,11 +3,6 @@ plugins { alias(deps.plugins.kotlin.kapt) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** DI */ @@ -32,5 +27,4 @@ dependencies { /** Tests */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/core/config-toggles/build.gradle.kts b/core/config-toggles/build.gradle.kts index 30a1f408aa..61afe91a6c 100644 --- a/core/config-toggles/build.gradle.kts +++ b/core/config-toggles/build.gradle.kts @@ -62,11 +62,6 @@ tasks.named("preBuild") { tasks.withType().configureEach { exclude { it.file.absolutePath.contains("/build/generated/") } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** DI */ implementation(deps.hilt.android) @@ -85,5 +80,4 @@ dependencies { implementation(projects.core.utils) testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/core/datasource/build.gradle.kts b/core/datasource/build.gradle.kts index c1b20c401a..31884225fe 100644 --- a/core/datasource/build.gradle.kts +++ b/core/datasource/build.gradle.kts @@ -58,11 +58,6 @@ androidComponents { variant.sources.java?.addGeneratedSourceDirectory(taskProvider, GenerateEnvironmentConfigTask::outputDir) } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Project */ @@ -131,5 +126,4 @@ dependencies { ksp(deps.room.compiler) testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/core/ui/build.gradle.kts b/core/ui/build.gradle.kts index ffb0ab01ea..7f42a94a4e 100644 --- a/core/ui/build.gradle.kts +++ b/core/ui/build.gradle.kts @@ -86,11 +86,6 @@ abstract class VerifyDesignTokensTask : DefaultTask() { .joinToString("") { b: Byte -> b.toInt().and(0xFF).toString(16).padStart(2, '0') } } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - android { namespace = "com.tangem.core.ui" @@ -174,5 +169,4 @@ dependencies { testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/core/utils/build.gradle.kts b/core/utils/build.gradle.kts index e5abca8e7b..00d44ed8e7 100644 --- a/core/utils/build.gradle.kts +++ b/core/utils/build.gradle.kts @@ -4,11 +4,6 @@ plugins { alias(deps.plugins.kotlin.serialization) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region DI @@ -27,7 +22,6 @@ dependencies { testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) } \ No newline at end of file diff --git a/data/account/build.gradle.kts b/data/account/build.gradle.kts index 9e1cd33fea..e059a1b26c 100644 --- a/data/account/build.gradle.kts +++ b/data/account/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.account" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Common @@ -70,7 +65,6 @@ dependencies { // region Test testImplementation(projects.common.test) testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.turbine) // endregion } \ No newline at end of file diff --git a/data/blockaid/build.gradle.kts b/data/blockaid/build.gradle.kts index aed7ea10b4..8a513989ee 100644 --- a/data/blockaid/build.gradle.kts +++ b/data/blockaid/build.gradle.kts @@ -38,12 +38,7 @@ dependencies { /* Tests */ testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.turbine) testImplementation(deps.test.truth) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/data/common/build.gradle.kts b/data/common/build.gradle.kts index e8cda44907..b676b16a02 100644 --- a/data/common/build.gradle.kts +++ b/data/common/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.common" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /* Core */ implementation(projects.core.datasource) @@ -49,6 +44,5 @@ dependencies { /* Test */ testImplementation(projects.common.test) testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.moshi) } \ No newline at end of file diff --git a/data/dynamic-addresses/build.gradle.kts b/data/dynamic-addresses/build.gradle.kts index 7d242b8d34..618e0609b7 100644 --- a/data/dynamic-addresses/build.gradle.kts +++ b/data/dynamic-addresses/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.dynamicaddresses" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Core implementation(projects.core.configToggles) @@ -44,7 +39,6 @@ dependencies { // endregion // region Testing - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.test.core) // endregion } \ No newline at end of file diff --git a/data/networks/build.gradle.kts b/data/networks/build.gradle.kts index 67c7f4eb40..9d038aa71b 100644 --- a/data/networks/build.gradle.kts +++ b/data/networks/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.networks" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Core implementation(projects.core.datasource) @@ -49,7 +44,6 @@ dependencies { // endregion // region Tests - testRuntimeOnly(deps.test.junit5.engine) testImplementation(tangemDeps.blockchain) testImplementation(tangemDeps.card.core) testImplementation(projects.common.test) diff --git a/data/news/build.gradle.kts b/data/news/build.gradle.kts index 0d06bf693d..801dc276a5 100644 --- a/data/news/build.gradle.kts +++ b/data/news/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.news" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Core implementation(projects.core.datasource) @@ -44,7 +39,6 @@ dependencies { // region Tests testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(projects.common.test) diff --git a/data/nft/build.gradle.kts b/data/nft/build.gradle.kts index 63a318a877..980501de77 100644 --- a/data/nft/build.gradle.kts +++ b/data/nft/build.gradle.kts @@ -11,11 +11,6 @@ plugins { android { namespace = "com.tangem.data.nft" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Project - Data */ @@ -60,5 +55,4 @@ dependencies { testImplementation(projects.test.core) testImplementation(projects.common.test) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/data/notifications/build.gradle.kts b/data/notifications/build.gradle.kts index 799839d61d..a0aeddb8c9 100644 --- a/data/notifications/build.gradle.kts +++ b/data/notifications/build.gradle.kts @@ -43,15 +43,10 @@ dependencies { // region tests testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) testImplementation(deps.moshi) testImplementation(deps.moshi.kotlin) // endregion -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/data/push-notification-preferences/build.gradle.kts b/data/push-notification-preferences/build.gradle.kts index 0a2ade678d..5911dc2475 100644 --- a/data/push-notification-preferences/build.gradle.kts +++ b/data/push-notification-preferences/build.gradle.kts @@ -30,15 +30,10 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) testImplementation(deps.test.turbine) testImplementation(deps.moshi) testImplementation(deps.moshi.kotlin) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/data/qr-scanning/build.gradle.kts b/data/qr-scanning/build.gradle.kts index 8e00726d5a..b8627af56e 100644 --- a/data/qr-scanning/build.gradle.kts +++ b/data/qr-scanning/build.gradle.kts @@ -30,11 +30,7 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) -} -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/data/quotes/build.gradle.kts b/data/quotes/build.gradle.kts index 5d169e0702..8b02a3dfae 100644 --- a/data/quotes/build.gradle.kts +++ b/data/quotes/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.data.quotes" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Core implementation(projects.core.datasource) @@ -47,7 +42,6 @@ dependencies { // endregion // region Tests - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) // endregion diff --git a/data/settings/build.gradle.kts b/data/settings/build.gradle.kts index 5bae11084f..7e15b66fe2 100644 --- a/data/settings/build.gradle.kts +++ b/data/settings/build.gradle.kts @@ -12,11 +12,6 @@ plugins { android { namespace = "com.tangem.data.settings" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.core.datasource) @@ -34,7 +29,6 @@ dependencies { // region Test testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) // endregion // region Others dependencies diff --git a/data/staking/build.gradle.kts b/data/staking/build.gradle.kts index 3aa93ac8e2..54aedfa1ae 100644 --- a/data/staking/build.gradle.kts +++ b/data/staking/build.gradle.kts @@ -12,11 +12,6 @@ plugins { android { namespace = "com.tangem.data.staking" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core modules */ implementation(projects.core.datasource) @@ -69,7 +64,6 @@ dependencies { // endregion - testRuntimeOnly(deps.test.junit5.engine) testImplementation(tangemDeps.card.core) testImplementation(projects.common.test) testImplementation(projects.test.core) diff --git a/data/swap/build.gradle.kts b/data/swap/build.gradle.kts index 0297e4d3ea..12a966d416 100644 --- a/data/swap/build.gradle.kts +++ b/data/swap/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.data.swap" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core */ implementation(projects.core.datasource) @@ -65,7 +60,6 @@ dependencies { kapt(deps.hilt.kapt) /** Test */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(tangemDeps.card.core) testImplementation(projects.common.test) testImplementation(projects.test.core) diff --git a/data/tokens/build.gradle.kts b/data/tokens/build.gradle.kts index de7a7ad1ff..f4fe69d99c 100644 --- a/data/tokens/build.gradle.kts +++ b/data/tokens/build.gradle.kts @@ -11,11 +11,6 @@ plugins { android { namespace = "com.tangem.data.tokens" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project - Data @@ -78,7 +73,6 @@ dependencies { // endregion // region Tests - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) // endregion diff --git a/data/transaction/build.gradle.kts b/data/transaction/build.gradle.kts index 8aa184a6a6..b897279bad 100644 --- a/data/transaction/build.gradle.kts +++ b/data/transaction/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.data.transaction" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Tangem SDKs */ @@ -50,7 +45,6 @@ dependencies { /** tests */ testImplementation(projects.common.test) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) diff --git a/data/visa/build.gradle.kts b/data/visa/build.gradle.kts index a9611b372b..5a5ccd9dec 100644 --- a/data/visa/build.gradle.kts +++ b/data/visa/build.gradle.kts @@ -21,11 +21,6 @@ android { } } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Project - Data */ @@ -84,6 +79,5 @@ dependencies { kapt(deps.hilt.kapt) /** Test */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.test.core) } \ No newline at end of file diff --git a/data/wallet-connect/build.gradle.kts b/data/wallet-connect/build.gradle.kts index 6a7d0ee861..03bc462167 100644 --- a/data/wallet-connect/build.gradle.kts +++ b/data/wallet-connect/build.gradle.kts @@ -64,11 +64,6 @@ dependencies { testImplementation(projects.common.test) testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.turbine) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/data/wallet-manager/build.gradle.kts b/data/wallet-manager/build.gradle.kts index ace6ee7b8a..ec688dfada 100644 --- a/data/wallet-manager/build.gradle.kts +++ b/data/wallet-manager/build.gradle.kts @@ -45,7 +45,6 @@ dependencies { implementation(deps.arrow.core) /** Testing libraries */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) } \ No newline at end of file diff --git a/data/wallets/build.gradle.kts b/data/wallets/build.gradle.kts index ed6a784a20..49f6582fe2 100644 --- a/data/wallets/build.gradle.kts +++ b/data/wallets/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.data.wallet" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.data.common) @@ -53,5 +48,4 @@ dependencies { /** tests */ testImplementation(projects.test.core) testImplementation(projects.common.test) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/data/yield-supply/build.gradle.kts b/data/yield-supply/build.gradle.kts index c5f7190f46..fc1e8aade5 100644 --- a/data/yield-supply/build.gradle.kts +++ b/data/yield-supply/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.data.yield.supply" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Tangem SDKs */ @@ -48,7 +43,6 @@ dependencies { /** tests */ testImplementation(projects.common.test) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) diff --git a/domain/account/build.gradle.kts b/domain/account/build.gradle.kts index c3434b09e3..cd6f6c4929 100644 --- a/domain/account/build.gradle.kts +++ b/domain/account/build.gradle.kts @@ -3,11 +3,6 @@ plugins { alias(deps.plugins.kotlin.serialization) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.domain.common) @@ -23,6 +18,5 @@ dependencies { // region Test libraries testImplementation(projects.test.core) testImplementation(projects.test.mock) - testRuntimeOnly(deps.test.junit5.engine) // endregion } \ No newline at end of file diff --git a/domain/account/status/build.gradle.kts b/domain/account/status/build.gradle.kts index 20d40f33d4..34703992ad 100644 --- a/domain/account/status/build.gradle.kts +++ b/domain/account/status/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.domain.account.status" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.domain.account) api(projects.domain.core) @@ -48,7 +43,6 @@ dependencies { kapt(deps.hilt.kapt) // end - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) testImplementation(projects.test.mock) diff --git a/domain/card/build.gradle.kts b/domain/card/build.gradle.kts index c5b5b65db8..cce7eaba54 100644 --- a/domain/card/build.gradle.kts +++ b/domain/card/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.domain.card" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.core.analytics.models) implementation(projects.core.error) @@ -37,7 +32,6 @@ dependencies { } /** Testing libraries */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) } \ No newline at end of file diff --git a/domain/core/build.gradle.kts b/domain/core/build.gradle.kts index b289ef5307..587900e51e 100644 --- a/domain/core/build.gradle.kts +++ b/domain/core/build.gradle.kts @@ -13,11 +13,6 @@ dependencies { testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/dynamic-addresses/build.gradle.kts b/domain/dynamic-addresses/build.gradle.kts index f569b12112..475e75f17b 100644 --- a/domain/dynamic-addresses/build.gradle.kts +++ b/domain/dynamic-addresses/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.domain.dynamicaddresses" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.domain.core) api(projects.domain.dynamicAddresses.models) @@ -26,7 +21,6 @@ dependencies { } implementation(tangemDeps.card.core) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) } \ No newline at end of file diff --git a/domain/hot-wallet/build.gradle.kts b/domain/hot-wallet/build.gradle.kts index b9817bcfe2..daa4f7dc33 100644 --- a/domain/hot-wallet/build.gradle.kts +++ b/domain/hot-wallet/build.gradle.kts @@ -18,12 +18,7 @@ dependencies { testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/legacy/build.gradle.kts b/domain/legacy/build.gradle.kts index 59b91dd6a8..c6dfe01af4 100644 --- a/domain/legacy/build.gradle.kts +++ b/domain/legacy/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.domain.features" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.core.datasource) implementation(projects.core.utils) @@ -46,7 +41,6 @@ dependencies { /** Testing libraries */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(projects.common.test) diff --git a/domain/manage-tokens/build.gradle.kts b/domain/manage-tokens/build.gradle.kts index 5fb948eeda..c693b54006 100644 --- a/domain/manage-tokens/build.gradle.kts +++ b/domain/manage-tokens/build.gradle.kts @@ -32,11 +32,6 @@ dependencies { /* Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/models/build.gradle.kts b/domain/models/build.gradle.kts index c8e4147a78..ebd2cfdb73 100644 --- a/domain/models/build.gradle.kts +++ b/domain/models/build.gradle.kts @@ -4,11 +4,6 @@ plugins { alias(deps.plugins.ksp) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.domain.core) api(projects.core.utils) @@ -24,5 +19,4 @@ dependencies { implementation(deps.arrow.core) testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/domain/notifications/build.gradle.kts b/domain/notifications/build.gradle.kts index b6db73d0ce..29e0164998 100644 --- a/domain/notifications/build.gradle.kts +++ b/domain/notifications/build.gradle.kts @@ -26,13 +26,8 @@ dependencies { // region Tests testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) // end -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/offramp/build.gradle.kts b/domain/offramp/build.gradle.kts index c2d05ca8fe..63178a3ade 100644 --- a/domain/offramp/build.gradle.kts +++ b/domain/offramp/build.gradle.kts @@ -2,11 +2,6 @@ plugins { alias(deps.plugins.kotlin.jvm) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Domain modules */ api(projects.domain.core) @@ -14,5 +9,4 @@ dependencies { /** Test libraries */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } diff --git a/domain/onramp/build.gradle.kts b/domain/onramp/build.gradle.kts index 967d3a4051..6b815c0540 100644 --- a/domain/onramp/build.gradle.kts +++ b/domain/onramp/build.gradle.kts @@ -3,11 +3,6 @@ plugins { alias(deps.plugins.kotlin.serialization) id("configuration") } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core modules */ implementation(projects.core.analytics.models) @@ -24,7 +19,6 @@ dependencies { /** Tests */ testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) } \ No newline at end of file diff --git a/domain/staking/build.gradle.kts b/domain/staking/build.gradle.kts index 587e19d32d..30c7dbf536 100644 --- a/domain/staking/build.gradle.kts +++ b/domain/staking/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.domain.staking" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { api(projects.domain.staking.models) api(projects.domain.core) @@ -35,7 +30,6 @@ dependencies { implementation(projects.libs.crypto) implementation(projects.libs.blockchainSdk) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(tangemDeps.card.core) testImplementation(projects.common.test) testImplementation(projects.test.core) diff --git a/domain/swap/build.gradle.kts b/domain/swap/build.gradle.kts index a0a8c88006..64c05120b6 100644 --- a/domain/swap/build.gradle.kts +++ b/domain/swap/build.gradle.kts @@ -32,11 +32,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/tokens/build.gradle.kts b/domain/tokens/build.gradle.kts index 4a8a7ade16..9c0888258e 100644 --- a/domain/tokens/build.gradle.kts +++ b/domain/tokens/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.domain.tokens" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Project - Domain */ @@ -62,7 +57,6 @@ dependencies { } /** Tests */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) } \ No newline at end of file diff --git a/domain/transaction/build.gradle.kts b/domain/transaction/build.gradle.kts index cf2f1c14bc..2791afdd38 100644 --- a/domain/transaction/build.gradle.kts +++ b/domain/transaction/build.gradle.kts @@ -41,12 +41,7 @@ dependencies { implementation(projects.domain.notifications) api(projects.domain.networks) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) testImplementation(projects.test.mock) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/visa/build.gradle.kts b/domain/visa/build.gradle.kts index 2f953d6aee..8ed679097d 100644 --- a/domain/visa/build.gradle.kts +++ b/domain/visa/build.gradle.kts @@ -8,11 +8,6 @@ plugins { android { namespace = "com.tangem.domain.visa" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Project - Core */ api(projects.core.pagination) @@ -42,7 +37,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) diff --git a/domain/wallet-manager/build.gradle.kts b/domain/wallet-manager/build.gradle.kts index c1b69e1b4c..162d0c7060 100644 --- a/domain/wallet-manager/build.gradle.kts +++ b/domain/wallet-manager/build.gradle.kts @@ -37,7 +37,6 @@ dependencies { /** Testing libraries */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(projects.common.test) diff --git a/domain/wallets/build.gradle.kts b/domain/wallets/build.gradle.kts index 1dd91df30b..5eb9549012 100644 --- a/domain/wallets/build.gradle.kts +++ b/domain/wallets/build.gradle.kts @@ -60,13 +60,8 @@ dependencies { // region Tests testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) // end -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/domain/yield-supply/build.gradle.kts b/domain/yield-supply/build.gradle.kts index 9a0616fb71..ed3e4090d9 100644 --- a/domain/yield-supply/build.gradle.kts +++ b/domain/yield-supply/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.domain.yield.supply" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core */ implementation(projects.core.ui) @@ -41,7 +36,6 @@ dependencies { /** tests */ testImplementation(projects.test.core) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) diff --git a/features/approval/impl/build.gradle.kts b/features/approval/impl/build.gradle.kts index 1a43aaf4a5..3b6329bf75 100644 --- a/features/approval/impl/build.gradle.kts +++ b/features/approval/impl/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.features.approval.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Feature */ @@ -64,7 +59,6 @@ dependencies { // region Tests testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) // endregion diff --git a/features/common-features/impl/build.gradle.kts b/features/common-features/impl/build.gradle.kts index d7d2787421..a44ae83e47 100644 --- a/features/common-features/impl/build.gradle.kts +++ b/features/common-features/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.commonfeatures.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.commonFeatures.api) @@ -86,7 +81,6 @@ dependencies { implementation(deps.hilt.android) kapt(deps.hilt.kapt) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(projects.common.test) testImplementation(projects.test.core) testImplementation(projects.test.mock) diff --git a/features/create-wallet-start/impl/build.gradle.kts b/features/create-wallet-start/impl/build.gradle.kts index f62c9a51f6..60c312171e 100644 --- a/features/create-wallet-start/impl/build.gradle.kts +++ b/features/create-wallet-start/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.createwalletstart.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.createWalletStart.api) @@ -79,7 +74,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/details/impl/build.gradle.kts b/features/details/impl/build.gradle.kts index f0cda1eba5..0b61f5c022 100644 --- a/features/details/impl/build.gradle.kts +++ b/features/details/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.details.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /* Project - API */ @@ -87,7 +82,6 @@ dependencies { /* Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/feed/impl/build.gradle.kts b/features/feed/impl/build.gradle.kts index a9908d1787..50a5c85d15 100644 --- a/features/feed/impl/build.gradle.kts +++ b/features/feed/impl/build.gradle.kts @@ -16,11 +16,6 @@ android { } } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /* Project - API */ api(projects.features.feed.api) @@ -109,7 +104,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/hot-wallet/impl/build.gradle.kts b/features/hot-wallet/impl/build.gradle.kts index 5fb36dc68f..5548f44c80 100644 --- a/features/hot-wallet/impl/build.gradle.kts +++ b/features/hot-wallet/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.hotwallet.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.hotWallet.api) @@ -85,7 +80,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/onboarding-v2/impl/build.gradle.kts b/features/onboarding-v2/impl/build.gradle.kts index 889540badf..36c8348666 100644 --- a/features/onboarding-v2/impl/build.gradle.kts +++ b/features/onboarding-v2/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.onboarding.v2.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.onboardingV2.api) @@ -97,7 +92,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/promo-banners/impl/build.gradle.kts b/features/promo-banners/impl/build.gradle.kts index d4c259ae4a..5570dc9c69 100644 --- a/features/promo-banners/impl/build.gradle.kts +++ b/features/promo-banners/impl/build.gradle.kts @@ -42,6 +42,5 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) } \ No newline at end of file diff --git a/features/rating/impl/build.gradle.kts b/features/rating/impl/build.gradle.kts index ccc7ed6d9f..7df24d75f0 100644 --- a/features/rating/impl/build.gradle.kts +++ b/features/rating/impl/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.feature.rating.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { implementation(projects.features.rating.api) @@ -30,7 +25,6 @@ dependencies { kapt(deps.hilt.kapt) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/send-v2/api/build.gradle.kts b/features/send-v2/api/build.gradle.kts index a44ab7f1f9..d66bba02d0 100644 --- a/features/send-v2/api/build.gradle.kts +++ b/features/send-v2/api/build.gradle.kts @@ -7,11 +7,6 @@ plugins { android { namespace = "com.tangem.features.send.v2.api" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core */ implementation(projects.core.decompose) @@ -46,7 +41,6 @@ dependencies { // region Tests testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(projects.common.test) diff --git a/features/send-v2/impl/build.gradle.kts b/features/send-v2/impl/build.gradle.kts index 81c2490591..274b9c4580 100644 --- a/features/send-v2/impl/build.gradle.kts +++ b/features/send-v2/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.send.v2.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.sendV2.api) @@ -95,7 +90,6 @@ dependencies { // region Tests testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(projects.common.test) diff --git a/features/staking/impl/build.gradle.kts b/features/staking/impl/build.gradle.kts index 218c739822..3613b3df3d 100644 --- a/features/staking/impl/build.gradle.kts +++ b/features/staking/impl/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.features.staking.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** AndroidX */ implementation(deps.androidx.fragment.ktx) @@ -95,7 +90,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/survey/impl/build.gradle.kts b/features/survey/impl/build.gradle.kts index e512a05413..57ade4ef97 100644 --- a/features/survey/impl/build.gradle.kts +++ b/features/survey/impl/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.features.survey.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /* Project - API */ implementation(projects.features.survey.api) @@ -54,7 +49,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/swap-v2/impl/build.gradle.kts b/features/swap-v2/impl/build.gradle.kts index c889ab70ea..c38b459119 100644 --- a/features/swap-v2/impl/build.gradle.kts +++ b/features/swap-v2/impl/build.gradle.kts @@ -96,11 +96,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/features/swap/data/build.gradle.kts b/features/swap/data/build.gradle.kts index 518d23cd2a..052c18df35 100644 --- a/features/swap/data/build.gradle.kts +++ b/features/swap/data/build.gradle.kts @@ -12,11 +12,6 @@ plugins { android { namespace = "com.tangem.feature.swap.data" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** AndroidX */ @@ -68,5 +63,4 @@ dependencies { /** Test */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/features/swap/domain/build.gradle.kts b/features/swap/domain/build.gradle.kts index fa2adfc216..78c1bc3f3d 100644 --- a/features/swap/domain/build.gradle.kts +++ b/features/swap/domain/build.gradle.kts @@ -14,11 +14,6 @@ android { unitTests.isIncludeAndroidResources = false } } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Libs */ implementation(projects.libs.crypto) @@ -82,5 +77,4 @@ dependencies { /** Test */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/features/swap/impl/build.gradle.kts b/features/swap/impl/build.gradle.kts index 1ca8bb6b4a..50bee6c624 100644 --- a/features/swap/impl/build.gradle.kts +++ b/features/swap/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.feature.swap.presentation" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Api */ implementation(projects.features.commonFeatures.api) @@ -119,5 +114,4 @@ dependencies { /** Test */ testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) } \ No newline at end of file diff --git a/features/tangempay/details/impl/build.gradle.kts b/features/tangempay/details/impl/build.gradle.kts index 0e0e518af9..29e3faebb5 100644 --- a/features/tangempay/details/impl/build.gradle.kts +++ b/features/tangempay/details/impl/build.gradle.kts @@ -64,13 +64,8 @@ dependencies { implementation(deps.kotlin.immutable.collections) /** Test */ - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.junit5) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/features/tangempay/onboarding/impl/build.gradle.kts b/features/tangempay/onboarding/impl/build.gradle.kts index 457040268e..b018b419bd 100644 --- a/features/tangempay/onboarding/impl/build.gradle.kts +++ b/features/tangempay/onboarding/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.tangempay.onboarding.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core */ implementation(projects.core.analytics) @@ -65,7 +60,6 @@ dependencies { /** Test */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/tokendetails/impl/build.gradle.kts b/features/tokendetails/impl/build.gradle.kts index f84bcd7839..919c98bb26 100644 --- a/features/tokendetails/impl/build.gradle.kts +++ b/features/tokendetails/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.tokendetails.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** AndroidX */ implementation(deps.androidx.activity.compose) @@ -118,7 +113,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/features/txhistory/impl/build.gradle.kts b/features/txhistory/impl/build.gradle.kts index 6f7a097ec9..65e102ca06 100644 --- a/features/txhistory/impl/build.gradle.kts +++ b/features/txhistory/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.txhistory.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /* Project - API */ implementation(projects.features.txhistory.api) @@ -66,7 +61,6 @@ dependencies { /* Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) } \ No newline at end of file diff --git a/features/wallet/impl/build.gradle.kts b/features/wallet/impl/build.gradle.kts index 8df5c796b7..755189ec2a 100644 --- a/features/wallet/impl/build.gradle.kts +++ b/features/wallet/impl/build.gradle.kts @@ -161,12 +161,7 @@ dependencies { /** Test libraries */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/features/walletconnect/impl/build.gradle.kts b/features/walletconnect/impl/build.gradle.kts index a7246e6f05..7dec8b44da 100644 --- a/features/walletconnect/impl/build.gradle.kts +++ b/features/walletconnect/impl/build.gradle.kts @@ -79,10 +79,5 @@ dependencies { /** Test libraries */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.truth) -} - -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/features/yield-supply/impl/build.gradle.kts b/features/yield-supply/impl/build.gradle.kts index 39c25e1264..37aee32489 100644 --- a/features/yield-supply/impl/build.gradle.kts +++ b/features/yield-supply/impl/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.features.yield.supply.impl" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Feature */ @@ -86,7 +81,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) testImplementation(deps.test.coroutine) diff --git a/libs/auth/build.gradle.kts b/libs/auth/build.gradle.kts index 7187124c7a..0c43be369f 100644 --- a/libs/auth/build.gradle.kts +++ b/libs/auth/build.gradle.kts @@ -10,11 +10,6 @@ plugins { android { namespace = "com.tangem.lib.auth" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { /** Core */ implementation(projects.core.configToggles) @@ -43,7 +38,6 @@ dependencies { /** Tests */ testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.coroutine) testImplementation(deps.test.truth) testImplementation(deps.test.mockk) diff --git a/libs/blockchain-sdk/build.gradle.kts b/libs/blockchain-sdk/build.gradle.kts index 16c1f17458..356f1e50bd 100644 --- a/libs/blockchain-sdk/build.gradle.kts +++ b/libs/blockchain-sdk/build.gradle.kts @@ -54,10 +54,6 @@ dependencies { testImplementation(deps.test.coroutine) testImplementation(deps.test.junit5) - testRuntimeOnly(deps.test.junit5.engine) testImplementation(deps.test.mockk) testImplementation(deps.test.truth) -} -tasks.withType().configureEach { - useJUnitPlatform() } \ No newline at end of file diff --git a/libs/crypto/build.gradle.kts b/libs/crypto/build.gradle.kts index 6f903222b3..32fe4ebfb3 100644 --- a/libs/crypto/build.gradle.kts +++ b/libs/crypto/build.gradle.kts @@ -9,11 +9,6 @@ plugins { android { namespace = "com.tangem.lib.crypto" } - -tasks.withType().configureEach { - useJUnitPlatform() -} - dependencies { // region Project @@ -32,6 +27,5 @@ dependencies { // region Test libraries testImplementation(projects.test.core) - testRuntimeOnly(deps.test.junit5.engine) // endregion } \ No newline at end of file diff --git a/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/ProjectConfigurations.kt b/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/ProjectConfigurations.kt index 20b67b7b6d..99f5afc116 100644 --- a/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/ProjectConfigurations.kt +++ b/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/ProjectConfigurations.kt @@ -5,5 +5,5 @@ import org.gradle.api.Project internal fun Project.configure() { configureKotlinCompilerOptions() configureDetektRules() - configureTestLogging() + configureUnitTests() } \ No newline at end of file diff --git a/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/TestConfigurations.kt b/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/TestConfigurations.kt index 5f5c3d5d9c..dc4c19589f 100644 --- a/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/TestConfigurations.kt +++ b/plugins/configuration/src/main/kotlin/com/tangem/plugin/configuration/configurations/TestConfigurations.kt @@ -1,5 +1,6 @@ package com.tangem.plugin.configuration.configurations +import com.tangem.plugin.configuration.utils.findLibrary import org.gradle.api.Project import org.gradle.api.tasks.testing.Test 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 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 { 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 { exceptionFormat = TestExceptionFormat.FULL showStandardStreams = true