This is an automated email from the ASF dual-hosted git repository. danwatford pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new c438302149 Fixed: Test sources not recognised in IntelliJ (OFBIZ-12923) (#716) c438302149 is described below commit c438302149830cd5f8153dab8e58e623915b21cf Author: Daniel Watford <dan...@watfordconsulting.com> AuthorDate: Thu Feb 29 18:33:50 2024 +0000 Fixed: Test sources not recognised in IntelliJ (OFBIZ-12923) (#716) Use correct 'content root' for groovy test sources for each component. This avoids a conflict with the various gradle sub-projects' content roots meaning IntelliJ won't disregard the test content root and will therefore correctly recognise test source code. --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 7b21df206c..76a613b738 100644 --- a/build.gradle +++ b/build.gradle @@ -344,10 +344,10 @@ sourceSets { // 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('') - 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' + srcDirs = getDirectoryInActiveComponentsIfExists('src/test/groovy') + include 'org/apache/ofbiz/service/ModelServiceTest.groovy' + include 'org/apache/ofbiz/test/TestServices.groovy' + include 'org/apache/ofbiz/base/util/FileUtilTests.groovy' } resources { srcDirs = getDirectoryInActiveComponentsIfExists('src/test/resources')