Skip to content

Commit 9f0d630

Browse files
committed
chore(test): Clean up the separation of which test runs what
1 parent 15a5826 commit 9f0d630

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

plugin/src/test/kotlin/io/github/androa/gradle/plugin/avro/AvroPluginFunctionalTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AvroPluginFunctionalTest {
1717
@ValueSource(
1818
strings = [
1919
"zero-config.gradle.kts",
20-
"default.gradle.kts",
20+
"custom-settings.gradle.kts",
2121
"custom-paths.gradle.kts",
2222
],
2323
)
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import org.apache.avro.compiler.specific.SpecificCompiler
2-
31
plugins {
42
id("io.github.androa.gradle.plugin.avro")
53
kotlin("jvm") version "2.1.20"
64
}
75

86
generateAvro {
9-
noSetters = true
10-
addNullSafeAnnotations.set(false)
11-
encoding = "UTF-8"
12-
fieldVisibility = SpecificCompiler.FieldVisibility.PUBLIC
13-
147
schemas.from(project.fileTree("custom-avro-path"))
158
outputDir.set(layout.buildDirectory.dir("custom-output-dir"))
16-
}
9+
}

plugin/src/test/resources/build-configs/default.gradle.kts renamed to plugin/src/test/resources/build-configs/custom-settings.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ plugins {
77

88
generateAvro {
99
noSetters = true
10-
// Both assign and set() is possible
1110
addNullSafeAnnotations.set(true)
1211
encoding = "UTF-8"
13-
fieldVisibility = SpecificCompiler.FieldVisibility.PRIVATE
14-
15-
// schemas.from(project.fileTree("src/main/avro"))
16-
// outputDir.set(layout.buildDirectory.dir("generated-avro"))
12+
fieldVisibility = SpecificCompiler.FieldVisibility.PUBLIC
1713
}

0 commit comments

Comments
 (0)