aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Herzig <jonas@spark-squared.com>2021-11-12 11:58:05 +0100
committerJonas Herzig <jonas@spark-squared.com>2021-11-12 15:23:25 +0100
commitb30404f156adb6e01bfe4edc50b4de4245ba4509 (patch)
tree7f563929717f12e855034f2eab6c9fb1f95a873e
parent5723e6481d2f4e07b6820201e74924643b5687bc (diff)
downloadRemap-b30404f156adb6e01bfe4edc50b4de4245ba4509.tar.gz
Remap-b30404f156adb6e01bfe4edc50b4de4245ba4509.tar.bz2
Remap-b30404f156adb6e01bfe4edc50b4de4245ba4509.zip
Separate B from A test files
So we are closer to a realistic setup and can tell when we accidentally look up a class in the wrong project. Also allows us to have changes in a class but not to the class or its package (i.e. same file).
-rw-r--r--build.gradle.kts5
-rw-r--r--src/testA/java/a/pkg/A.java (renamed from src/test/java/a/pkg/A.java)0
-rw-r--r--src/testA/java/a/pkg/AInterface.java (renamed from src/test/java/a/pkg/AInterface.java)0
-rw-r--r--src/testA/java/a/pkg/AParent.java (renamed from src/test/java/a/pkg/AParent.java)0
-rw-r--r--src/testB/java/b/pkg/B.java (renamed from src/test/java/b/pkg/B.java)0
-rw-r--r--src/testB/java/b/pkg/BInterface.java (renamed from src/test/java/b/pkg/BInterface.java)0
-rw-r--r--src/testB/java/b/pkg/BParent.java (renamed from src/test/java/b/pkg/BParent.java)0
7 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 738d008..c3bba96 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -17,6 +17,9 @@ repositories {
maven("https://repo.spongepowered.org/repository/maven-public/")
}
+val testA by sourceSets.creating
+val testB by sourceSets.creating
+
dependencies {
api("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.21")
implementation(kotlin("stdlib"))
@@ -26,6 +29,8 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.7.1")
testImplementation("io.kotest:kotest-assertions-core:4.6.3")
+ testRuntimeOnly(testA.output)
+ testRuntimeOnly(testB.output)
testRuntimeOnly("org.spongepowered:mixin:0.8.4")
}
diff --git a/src/test/java/a/pkg/A.java b/src/testA/java/a/pkg/A.java
index f4a30ef..f4a30ef 100644
--- a/src/test/java/a/pkg/A.java
+++ b/src/testA/java/a/pkg/A.java
diff --git a/src/test/java/a/pkg/AInterface.java b/src/testA/java/a/pkg/AInterface.java
index 8786c94..8786c94 100644
--- a/src/test/java/a/pkg/AInterface.java
+++ b/src/testA/java/a/pkg/AInterface.java
diff --git a/src/test/java/a/pkg/AParent.java b/src/testA/java/a/pkg/AParent.java
index ac0ea7c..ac0ea7c 100644
--- a/src/test/java/a/pkg/AParent.java
+++ b/src/testA/java/a/pkg/AParent.java
diff --git a/src/test/java/b/pkg/B.java b/src/testB/java/b/pkg/B.java
index 150ab0b..150ab0b 100644
--- a/src/test/java/b/pkg/B.java
+++ b/src/testB/java/b/pkg/B.java
diff --git a/src/test/java/b/pkg/BInterface.java b/src/testB/java/b/pkg/BInterface.java
index c57c72f..c57c72f 100644
--- a/src/test/java/b/pkg/BInterface.java
+++ b/src/testB/java/b/pkg/BInterface.java
diff --git a/src/test/java/b/pkg/BParent.java b/src/testB/java/b/pkg/BParent.java
index d4b20fa..d4b20fa 100644
--- a/src/test/java/b/pkg/BParent.java
+++ b/src/testB/java/b/pkg/BParent.java