Author: taher
Date: Mon Jul 18 05:01:15 2016
New Revision: 1753143
URL:
http://svn.apache.org/viewvc?rev=1753143&view=revLog:
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/3cebkshhgyzds4e5Modified:
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 {