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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user