This is an automated email from the ASF dual-hosted git repository.

wpaetzold pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit 9d748e881cf2e7e5360675bf9499b23ea0f02a96
Author: Cheng Hu Shan <cheng-hu.s...@ecomify.de>
AuthorDate: Wed Jul 19 14:29:44 2023 +0200

    Improved: Groovy tests are no longer automatically added to gradle test
    sourceSet (OFBIZ-12813)
---
 build.gradle | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 5303048d66..8fce176ecc 100644
--- a/build.gradle
+++ b/build.gradle
@@ -342,8 +342,13 @@ sourceSets {
         java {
             srcDirs = getDirectoryInActiveComponentsIfExists('src/test/java')
         }
+        // Groovy tests often fail, because JUNIT does not have access to the 
ofbiz enviroment.
+        // If a groovy test is supposed to be tested this way, it can be added 
here.
         groovy {
-            srcDirs = getDirectoryInActiveComponentsIfExists('src/test/groovy')
+            srcDirs = getDirectoryInActiveComponentsIfExists('')
+            include 
'src/test/groovy/org/apache/ofbiz/service/ModelServiceTest.groovy'
+            include 'src/test/groovy/org/apache/ofbiz/test/TestServices.groovy'
+            include 
'src/test/groovy/org/apache/ofbiz/base/util/FileUtilTests.groovy'
         }
         resources {
             srcDirs = 
getDirectoryInActiveComponentsIfExists('src/test/resources')

Reply via email to