You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ta...@apache.org on 2016/07/18 05:01:15 UTC
svn commit: r1753143 - /ofbiz/trunk/build.gradle
Author: taher
Date: Mon Jul 18 05:01:15 2016
New Revision: 1753143
URL: http://svn.apache.org/viewvc?rev=1753143&view=rev
Log:
Introduce unit testing to OFBiz for components in /src/test/java - OFBIZ-7254
With this small commit, OFBiz is now ready for unit tests in the framework.
To create new tests simply create the java classes for testing in each component
inside /src/test/java. For example /src/test/java/org/apache/ofbiz/foo/bar/MyTests.java
This work is based on the discussion we had in the below thread.
http://ofbiz.markmail.org/message/3cebkshhgyzds4e5
Modified:
ofbiz/trunk/build.gradle
Modified: ofbiz/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1753143&r1=1753142&r2=1753143&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Mon Jul 18 05:01:15 2016
@@ -236,6 +236,15 @@ sourceSets {
exclude excludedJavaSources
}
}
+
+ test {
+ java {
+ srcDirs = getDirectoryInActiveComponentsIfExists('src/test/java')
+ }
+ resources {
+ srcDirs = getDirectoryInActiveComponentsIfExists('src/test/java')
+ }
+ }
}
jar {