Skip to content

Commit 68a2bdb

Browse files
committed
Relocate testing configuration to extractor
Only extractor has actual tests Signed-off-by: Aayush Gupta <[email protected]>
1 parent daead30 commit 68a2bdb

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
* SPDX-License-Identifier: GPL-3.0-or-later
44
*/
55

6-
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
7-
import org.gradle.api.tasks.testing.logging.TestLogEvent
8-
96
plugins {
107
alias(libs.plugins.google.protobuf) apply false
118
}
@@ -38,13 +35,4 @@ subprojects {
3835
)
3936
}
4037
}
41-
42-
// Test logging setup
43-
tasks.withType<Test>().configureEach {
44-
testLogging {
45-
events = setOf(TestLogEvent.SKIPPED, TestLogEvent.FAILED)
46-
showStandardStreams = true
47-
exceptionFormat = TestExceptionFormat.FULL
48-
}
49-
}
5038
}

extractor/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* SPDX-License-Identifier: GPL-3.0-or-later
44
*/
55

6+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
7+
import org.gradle.api.tasks.testing.logging.TestLogEvent
8+
69
plugins {
710
alias(libs.plugins.google.protobuf)
811
checkstyle
@@ -22,6 +25,13 @@ tasks.jar {
2225
}
2326

2427
tasks.test {
28+
// Test logging setup
29+
testLogging {
30+
events = setOf(TestLogEvent.SKIPPED, TestLogEvent.FAILED)
31+
showStandardStreams = true
32+
exceptionFormat = TestExceptionFormat.FULL
33+
}
34+
2535
// Pass on downloader type to tests for different CI jobs. See DownloaderFactory.java and ci.yml
2636
if (System.getProperties().containsKey("downloader")) {
2737
systemProperty("downloader", System.getProperty("downloader"))

0 commit comments

Comments
 (0)