From c51159672e8da9782cb3a656581f8ac6f2a9e32c Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Wed, 4 Oct 2023 12:46:22 +0200 Subject: [PATCH] (build) Move unit test configuration to root build.gradle --- build.gradle | 12 ++++++++++++ code/api/assistant-api/build.gradle | 10 ---------- code/api/index-api/build.gradle | 10 ---------- code/api/process-mqapi/build.gradle | 10 ---------- code/api/search-api/build.gradle | 10 ---------- code/common/config/build.gradle | 14 -------------- code/common/db/build.gradle | 14 -------------- code/common/linkdb/build.gradle | 14 -------------- code/common/model/build.gradle | 13 ------------- code/common/process/build.gradle | 14 -------------- code/common/renderer/build.gradle | 11 ----------- code/common/service-client/build.gradle | 14 -------------- code/features-convert/adblock/build.gradle | 10 ---------- .../keyword-extraction/build.gradle | 11 ----------- code/features-convert/pubdate/build.gradle | 11 ----------- .../stackexchange-xml/build.gradle | 1 + .../summary-extraction/build.gradle | 10 ---------- .../topic-detection/build.gradle | 11 ----------- code/features-crawl/crawl-blocklist/build.gradle | 9 --------- code/features-crawl/link-parser/build.gradle | 10 ---------- code/features-index/domain-ranking/build.gradle | 11 ----------- code/features-index/index-forward/build.gradle | 10 ---------- code/features-index/index-journal/build.gradle | 10 ---------- code/features-index/index-query/build.gradle | 9 --------- code/features-index/index-reverse/build.gradle | 9 --------- code/features-search/query-parser/build.gradle | 12 ------------ .../features-search/random-websites/build.gradle | 14 -------------- code/features-search/result-ranking/build.gradle | 10 ---------- code/features-search/screenshots/build.gradle | 11 ----------- code/libraries/language-processing/build.gradle | 11 ----------- code/libraries/message-queue/build.gradle | 10 ---------- code/libraries/term-frequency-dict/build.gradle | 11 ----------- code/process-models/crawl-spec/build.gradle | 9 --------- code/process-models/crawling-model/build.gradle | 10 ---------- code/process-models/processed-data/build.gradle | 9 --------- code/process-models/work-log/build.gradle | 9 --------- code/processes/converting-process/build.gradle | 11 ----------- code/processes/crawling-process/build.gradle | 9 --------- .../index-constructor-process/build.gradle | 9 --------- code/processes/loading-process/build.gradle | 9 --------- .../services-core/assistant-service/build.gradle | 11 ----------- code/services-core/control-service/build.gradle | 9 --------- code/services-core/index-service/build.gradle | 9 --------- code/services-core/search-service/build.gradle | 11 ----------- code/services-satellite/api-service/build.gradle | 10 ---------- .../dating-service/build.gradle | 11 ----------- .../explorer-service/build.gradle | 10 ---------- code/tools/experiment-runner/build.gradle | 10 ---------- code/tools/load-test/build.gradle | 10 ---------- code/tools/screenshot-capture-tool/build.gradle | 9 --------- code/tools/stackexchange-converter/build.gradle | 10 ---------- code/tools/term-frequency-extractor/build.gradle | 13 +------------ .../website-adjacencies-calculator/build.gradle | 16 +--------------- 53 files changed, 15 insertions(+), 546 deletions(-) diff --git a/build.gradle b/build.gradle index 219120a4..16c043cb 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,18 @@ allprojects { lombok libs.lombok // prevent plugin from downgrading the version to something incompatible with '19 } + test { + maxHeapSize = "8G" + useJUnitPlatform() + } + + tasks.register('fastTests', Test) { + maxHeapSize = "8G" + useJUnitPlatform { + excludeTags "slow" + } + } + } tasks.register('dist', Copy) { diff --git a/code/api/assistant-api/build.gradle b/code/api/assistant-api/build.gradle index 30f6c338..02bc8780 100644 --- a/code/api/assistant-api/build.gradle +++ b/code/api/assistant-api/build.gradle @@ -29,13 +29,3 @@ dependencies { testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/api/index-api/build.gradle b/code/api/index-api/build.gradle index bd3e9fa3..001d16c0 100644 --- a/code/api/index-api/build.gradle +++ b/code/api/index-api/build.gradle @@ -33,13 +33,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/api/process-mqapi/build.gradle b/code/api/process-mqapi/build.gradle index 893516fe..eace2289 100644 --- a/code/api/process-mqapi/build.gradle +++ b/code/api/process-mqapi/build.gradle @@ -18,13 +18,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/api/search-api/build.gradle b/code/api/search-api/build.gradle index 2f46f5c4..8b0eed50 100644 --- a/code/api/search-api/build.gradle +++ b/code/api/search-api/build.gradle @@ -31,13 +31,3 @@ dependencies { testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/common/config/build.gradle b/code/common/config/build.gradle index 353c1bd5..60b2eb7e 100644 --- a/code/common/config/build.gradle +++ b/code/common/config/build.gradle @@ -15,17 +15,3 @@ dependencies { implementation project(':code:common:service-discovery') implementation project(':code:common:service-client') } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/common/db/build.gradle b/code/common/db/build.gradle index d8fe747a..5e213116 100644 --- a/code/common/db/build.gradle +++ b/code/common/db/build.gradle @@ -52,17 +52,3 @@ flyway { locations = ['filesystem:src/main/resources/db/migration'] } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/common/linkdb/build.gradle b/code/common/linkdb/build.gradle index 441a024e..1f223144 100644 --- a/code/common/linkdb/build.gradle +++ b/code/common/linkdb/build.gradle @@ -38,17 +38,3 @@ dependencies { testImplementation 'org.testcontainers:junit-jupiter:1.17.4' } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/common/model/build.gradle b/code/common/model/build.gradle index 4b7dfd24..b737f02d 100644 --- a/code/common/model/build.gradle +++ b/code/common/model/build.gradle @@ -36,17 +36,4 @@ dependencies { testImplementation libs.mockito } -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/common/process/build.gradle b/code/common/process/build.gradle index 2e1288e4..fb68b32f 100644 --- a/code/common/process/build.gradle +++ b/code/common/process/build.gradle @@ -27,17 +27,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/common/renderer/build.gradle b/code/common/renderer/build.gradle index 0991e385..0ad40c02 100644 --- a/code/common/renderer/build.gradle +++ b/code/common/renderer/build.gradle @@ -20,14 +20,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} - diff --git a/code/common/service-client/build.gradle b/code/common/service-client/build.gradle index 400d2779..d34f362f 100644 --- a/code/common/service-client/build.gradle +++ b/code/common/service-client/build.gradle @@ -34,17 +34,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/features-convert/adblock/build.gradle b/code/features-convert/adblock/build.gradle index 141c7bbc..90e3e205 100644 --- a/code/features-convert/adblock/build.gradle +++ b/code/features-convert/adblock/build.gradle @@ -26,13 +26,3 @@ dependencies { testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-convert/keyword-extraction/build.gradle b/code/features-convert/keyword-extraction/build.gradle index cb9eac40..9afcc61c 100644 --- a/code/features-convert/keyword-extraction/build.gradle +++ b/code/features-convert/keyword-extraction/build.gradle @@ -35,14 +35,3 @@ dependencies { testImplementation libs.mockito testImplementation project(':code:processes:converting-process') } - -test { - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-convert/pubdate/build.gradle b/code/features-convert/pubdate/build.gradle index 8fe1e69a..0a08ea74 100644 --- a/code/features-convert/pubdate/build.gradle +++ b/code/features-convert/pubdate/build.gradle @@ -27,14 +27,3 @@ dependencies { testImplementation libs.mockito testImplementation project(':code:common:config') } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-convert/stackexchange-xml/build.gradle b/code/features-convert/stackexchange-xml/build.gradle index 8c774f90..daa26cff 100644 --- a/code/features-convert/stackexchange-xml/build.gradle +++ b/code/features-convert/stackexchange-xml/build.gradle @@ -15,6 +15,7 @@ dependencies { implementation 'org.tukaani:xz:1.8' implementation project(':code:libraries:blocking-thread-pool') + implementation project(':code:common:model') implementation libs.notnull implementation libs.jsoup diff --git a/code/features-convert/summary-extraction/build.gradle b/code/features-convert/summary-extraction/build.gradle index 922910e5..7ff4f23c 100644 --- a/code/features-convert/summary-extraction/build.gradle +++ b/code/features-convert/summary-extraction/build.gradle @@ -35,13 +35,3 @@ dependencies { testImplementation project(':code:common:model') } -test { - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-convert/topic-detection/build.gradle b/code/features-convert/topic-detection/build.gradle index ee84437f..5836dc2b 100644 --- a/code/features-convert/topic-detection/build.gradle +++ b/code/features-convert/topic-detection/build.gradle @@ -27,14 +27,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-crawl/crawl-blocklist/build.gradle b/code/features-crawl/crawl-blocklist/build.gradle index 6e567246..c131e97b 100644 --- a/code/features-crawl/crawl-blocklist/build.gradle +++ b/code/features-crawl/crawl-blocklist/build.gradle @@ -35,12 +35,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-crawl/link-parser/build.gradle b/code/features-crawl/link-parser/build.gradle index b64fb0ae..dc551943 100644 --- a/code/features-crawl/link-parser/build.gradle +++ b/code/features-crawl/link-parser/build.gradle @@ -31,13 +31,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-index/domain-ranking/build.gradle b/code/features-index/domain-ranking/build.gradle index d3a4ae80..bfd613e9 100644 --- a/code/features-index/domain-ranking/build.gradle +++ b/code/features-index/domain-ranking/build.gradle @@ -30,14 +30,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-index/index-forward/build.gradle b/code/features-index/index-forward/build.gradle index 70d8d11f..6c09f048 100644 --- a/code/features-index/index-forward/build.gradle +++ b/code/features-index/index-forward/build.gradle @@ -32,13 +32,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-index/index-journal/build.gradle b/code/features-index/index-journal/build.gradle index 7429dc18..f9197954 100644 --- a/code/features-index/index-journal/build.gradle +++ b/code/features-index/index-journal/build.gradle @@ -29,13 +29,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-index/index-query/build.gradle b/code/features-index/index-query/build.gradle index 5aef9940..71b925e8 100644 --- a/code/features-index/index-query/build.gradle +++ b/code/features-index/index-query/build.gradle @@ -23,12 +23,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-index/index-reverse/build.gradle b/code/features-index/index-reverse/build.gradle index 55357956..afa0136f 100644 --- a/code/features-index/index-reverse/build.gradle +++ b/code/features-index/index-reverse/build.gradle @@ -31,12 +31,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-search/query-parser/build.gradle b/code/features-search/query-parser/build.gradle index c551c411..8fd14810 100644 --- a/code/features-search/query-parser/build.gradle +++ b/code/features-search/query-parser/build.gradle @@ -32,15 +32,3 @@ dependencies { testImplementation libs.mockito } -test { - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} - diff --git a/code/features-search/random-websites/build.gradle b/code/features-search/random-websites/build.gradle index 0f8593c1..b95e7aa1 100644 --- a/code/features-search/random-websites/build.gradle +++ b/code/features-search/random-websites/build.gradle @@ -33,17 +33,3 @@ configurations { e2eTestImplementation.extendsFrom(testImplementation) } - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-search/result-ranking/build.gradle b/code/features-search/result-ranking/build.gradle index 1d23fa50..a8cb48a4 100644 --- a/code/features-search/result-ranking/build.gradle +++ b/code/features-search/result-ranking/build.gradle @@ -28,13 +28,3 @@ dependencies { testImplementation project(':code:libraries:braille-block-punch-cards') } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/features-search/screenshots/build.gradle b/code/features-search/screenshots/build.gradle index 3821fb9c..ac2779f6 100644 --- a/code/features-search/screenshots/build.gradle +++ b/code/features-search/screenshots/build.gradle @@ -27,15 +27,4 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito -} - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } } \ No newline at end of file diff --git a/code/libraries/language-processing/build.gradle b/code/libraries/language-processing/build.gradle index 7b635de0..266bcfb4 100644 --- a/code/libraries/language-processing/build.gradle +++ b/code/libraries/language-processing/build.gradle @@ -33,14 +33,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/libraries/message-queue/build.gradle b/code/libraries/message-queue/build.gradle index 3cdb5e1d..22be6c96 100644 --- a/code/libraries/message-queue/build.gradle +++ b/code/libraries/message-queue/build.gradle @@ -30,13 +30,3 @@ dependencies { testImplementation 'org.testcontainers:mariadb:1.17.4' testImplementation 'org.testcontainers:junit-jupiter:1.17.4' } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/libraries/term-frequency-dict/build.gradle b/code/libraries/term-frequency-dict/build.gradle index 3fb03f68..d7cd4029 100644 --- a/code/libraries/term-frequency-dict/build.gradle +++ b/code/libraries/term-frequency-dict/build.gradle @@ -35,14 +35,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/process-models/crawl-spec/build.gradle b/code/process-models/crawl-spec/build.gradle index fb0d2c34..148aebc1 100644 --- a/code/process-models/crawl-spec/build.gradle +++ b/code/process-models/crawl-spec/build.gradle @@ -27,12 +27,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/process-models/crawling-model/build.gradle b/code/process-models/crawling-model/build.gradle index c30a3a4d..ebbea855 100644 --- a/code/process-models/crawling-model/build.gradle +++ b/code/process-models/crawling-model/build.gradle @@ -34,13 +34,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/process-models/processed-data/build.gradle b/code/process-models/processed-data/build.gradle index e91fde47..d77ebab5 100644 --- a/code/process-models/processed-data/build.gradle +++ b/code/process-models/processed-data/build.gradle @@ -24,12 +24,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/process-models/work-log/build.gradle b/code/process-models/work-log/build.gradle index 6d3253ef..25fbf22e 100644 --- a/code/process-models/work-log/build.gradle +++ b/code/process-models/work-log/build.gradle @@ -20,12 +20,3 @@ dependencies { testImplementation libs.mockito } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/processes/converting-process/build.gradle b/code/processes/converting-process/build.gradle index 54a3624b..acbddf7e 100644 --- a/code/processes/converting-process/build.gradle +++ b/code/processes/converting-process/build.gradle @@ -96,14 +96,3 @@ dependencies { testImplementation project(':code:processes:test-data') testImplementation project(':code:processes:crawling-process') } - -test { - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/processes/crawling-process/build.gradle b/code/processes/crawling-process/build.gradle index 3a3d80e0..8f8dd951 100644 --- a/code/processes/crawling-process/build.gradle +++ b/code/processes/crawling-process/build.gradle @@ -62,12 +62,3 @@ dependencies { testImplementation project(':code:processes:test-data') } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/processes/index-constructor-process/build.gradle b/code/processes/index-constructor-process/build.gradle index bc09b483..5d8268e5 100644 --- a/code/processes/index-constructor-process/build.gradle +++ b/code/processes/index-constructor-process/build.gradle @@ -43,12 +43,3 @@ dependencies { testImplementation project(':code:processes:test-data') } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/processes/loading-process/build.gradle b/code/processes/loading-process/build.gradle index b64ea999..7cf7e9ab 100644 --- a/code/processes/loading-process/build.gradle +++ b/code/processes/loading-process/build.gradle @@ -58,12 +58,3 @@ dependencies { testImplementation 'org.testcontainers:junit-jupiter:1.17.4' } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/services-core/assistant-service/build.gradle b/code/services-core/assistant-service/build.gradle index c12bf07f..89f90eee 100644 --- a/code/services-core/assistant-service/build.gradle +++ b/code/services-core/assistant-service/build.gradle @@ -54,14 +54,3 @@ dependencies { } - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/services-core/control-service/build.gradle b/code/services-core/control-service/build.gradle index f655ccbe..f5535f7e 100644 --- a/code/services-core/control-service/build.gradle +++ b/code/services-core/control-service/build.gradle @@ -60,13 +60,4 @@ dependencies { testImplementation 'org.testcontainers:junit-jupiter:1.17.4' } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/services-core/index-service/build.gradle b/code/services-core/index-service/build.gradle index 3f2152c3..94e4210b 100644 --- a/code/services-core/index-service/build.gradle +++ b/code/services-core/index-service/build.gradle @@ -64,12 +64,3 @@ dependencies { } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/services-core/search-service/build.gradle b/code/services-core/search-service/build.gradle index 23a9bfa8..5975344f 100644 --- a/code/services-core/search-service/build.gradle +++ b/code/services-core/search-service/build.gradle @@ -64,15 +64,4 @@ dependencies { testImplementation libs.mockito } -test { - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/services-satellite/api-service/build.gradle b/code/services-satellite/api-service/build.gradle index 6b465de1..4b3b3b12 100644 --- a/code/services-satellite/api-service/build.gradle +++ b/code/services-satellite/api-service/build.gradle @@ -51,13 +51,3 @@ dependencies { testImplementation 'org.testcontainers:junit-jupiter:1.17.4' } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} - diff --git a/code/services-satellite/dating-service/build.gradle b/code/services-satellite/dating-service/build.gradle index 718a4067..6ad45833 100644 --- a/code/services-satellite/dating-service/build.gradle +++ b/code/services-satellite/dating-service/build.gradle @@ -51,14 +51,3 @@ dependencies { } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} - - diff --git a/code/services-satellite/explorer-service/build.gradle b/code/services-satellite/explorer-service/build.gradle index 3ed06dff..807ca8a1 100644 --- a/code/services-satellite/explorer-service/build.gradle +++ b/code/services-satellite/explorer-service/build.gradle @@ -46,13 +46,3 @@ dependencies { testImplementation libs.bundles.junit testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} \ No newline at end of file diff --git a/code/tools/experiment-runner/build.gradle b/code/tools/experiment-runner/build.gradle index 4dae2d5a..800ee336 100644 --- a/code/tools/experiment-runner/build.gradle +++ b/code/tools/experiment-runner/build.gradle @@ -53,13 +53,3 @@ dependencies { testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/tools/load-test/build.gradle b/code/tools/load-test/build.gradle index 2adb1144..e8b363c8 100644 --- a/code/tools/load-test/build.gradle +++ b/code/tools/load-test/build.gradle @@ -19,13 +19,3 @@ dependencies { implementation libs.notnull } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/tools/screenshot-capture-tool/build.gradle b/code/tools/screenshot-capture-tool/build.gradle index 93dd196d..ee231abb 100644 --- a/code/tools/screenshot-capture-tool/build.gradle +++ b/code/tools/screenshot-capture-tool/build.gradle @@ -37,12 +37,3 @@ dependencies { } -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/tools/stackexchange-converter/build.gradle b/code/tools/stackexchange-converter/build.gradle index f5b1c111..e41faf17 100644 --- a/code/tools/stackexchange-converter/build.gradle +++ b/code/tools/stackexchange-converter/build.gradle @@ -38,13 +38,3 @@ dependencies { testImplementation libs.mockito } - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} diff --git a/code/tools/term-frequency-extractor/build.gradle b/code/tools/term-frequency-extractor/build.gradle index 18055fa4..e4e1fcce 100644 --- a/code/tools/term-frequency-extractor/build.gradle +++ b/code/tools/term-frequency-extractor/build.gradle @@ -46,15 +46,4 @@ dependencies { testImplementation libs.bundles.slf4j.test testImplementation libs.bundles.junit testImplementation libs.mockito -} - - -test { - useJUnitPlatform() -} - -task fastTests(type: Test) { - useJUnitPlatform { - excludeTags "slow" - } -} +} \ No newline at end of file diff --git a/code/tools/website-adjacencies-calculator/build.gradle b/code/tools/website-adjacencies-calculator/build.gradle index 503001d2..bbee4c21 100644 --- a/code/tools/website-adjacencies-calculator/build.gradle +++ b/code/tools/website-adjacencies-calculator/build.gradle @@ -38,18 +38,4 @@ dependencies { configurations { e2eTestImplementation.extendsFrom(testImplementation) -} - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform() -} - -task fastTests(type: Test) { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - maxHeapSize = "8G" - useJUnitPlatform { - excludeTags "slow" - } -} +} \ No newline at end of file