9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 02:49:19 +00:00

Add Leaf JUnit test suite

This commit is contained in:
Dreeam
2025-07-12 16:03:27 +08:00
parent af39f5cf5f
commit abb8b1fda4
54 changed files with 134 additions and 5 deletions

View File

@@ -234,7 +234,7 @@
doFirst {
workingDir.mkdirs()
@@ -391,3 +_,62 @@
@@ -391,3 +_,78 @@
}
}
}
@@ -297,3 +297,19 @@
+ }
+}
+// Gale end - branding changes - package license into jar
+
+// Leaf start - Leaf JUnit test suite
+tasks.register<Test>("runLeafTests") {
+ group = LifecycleBasePlugin.VERIFICATION_GROUP
+ include("**/LeafTestSuite.class")
+ workingDir = temporaryDir
+ useJUnitPlatform {
+ forkEvery = 1
+ }
+
+ // Configure mockito agent that is needed in newer java versions
+ val provider = objects.newInstance<MockitoAgentProvider>()
+ provider.fileCollection.from(mockitoAgent)
+ jvmArgumentProviders.add(provider)
+}
+// Leaf end - Leaf JUnit test suite