Skip to content

Commit b982a6d

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

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
}
@@ -37,13 +34,4 @@ subprojects {
3734
)
3835
}
3936
}
40-
41-
// Test logging setup
42-
tasks.withType<Test>().configureEach {
43-
testLogging {
44-
events = setOf(TestLogEvent.SKIPPED, TestLogEvent.FAILED)
45-
showStandardStreams = true
46-
exceptionFormat = TestExceptionFormat.FULL
47-
}
48-
}
4937
}

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
@@ -21,6 +24,13 @@ tasks.jar {
2124
}
2225

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

0 commit comments

Comments
 (0)