This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-site.git
The following commit(s) were added to refs/heads/master by this push:
new a9b4342 Improved: updates test-suite.xsd documentation
a9b4342 is described below
commit a9b4342125fe282c804889254c1d968b664e87b7
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sun Apr 7 11:19:00 2024 +0200
Improved: updates test-suite.xsd documentation
For junit-test-suite and groovy-test-suite
---
dtds/test-suite.xsd | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/dtds/test-suite.xsd b/dtds/test-suite.xsd
index 0620a30..3f9d113 100644
--- a/dtds/test-suite.xsd
+++ b/dtds/test-suite.xsd
@@ -68,7 +68,11 @@ under the License.
</xs:attributeGroup>
<xs:element name="junit-test-suite" substitutionGroup="TestCaseTypes">
- <xs:annotation><xs:documentation>Used for JUnit test suites written as
a Java class.</xs:documentation></xs:annotation>
+ <xs:annotation>
+ <xs:documentation>
+ Used for JUnit test suites written as a Java class. This is
rather to be used in production/
+ </xs:documentation>
+ </xs:annotation>
<xs:complexType>
<xs:attributeGroup ref="attlist.junit-test-suite"/>
</xs:complexType>
@@ -77,8 +81,9 @@ under the License.
<xs:attribute type="xs:string" name="class-name" use="required">
<xs:annotation>
<xs:documentation>
- At minimum should extend the junit.framework.TestCase
class. If you want to use a GenericDelegator or
+ At minimum should extend the junit.framework.TestCase
class. If you want to use a GenericDelegator or
LocalDispatcher you should extend the OFBizTestCase class
and use the ones provided by it.
+ This is rather to be used in production
</xs:documentation>
</xs:annotation>
</xs:attribute>
@@ -87,7 +92,9 @@ under the License.
<xs:element name="groovy-test-suite" substitutionGroup="TestCaseTypes">
<xs:annotation>
<xs:documentation>
- Used for JUnit test suites written as a Groovy class. See
http://groovy-lang.org/testing.html
+ Used for JUnit test suites written as a Groovy class. See
http://groovy-lang.org/testing.html. This is rather to be used during
development and testing.
+ When going to production; for performance reason
(compilation), you should use rather use junit-test-suite and move the test
file under main and use.
+ See existing examples.
</xs:documentation>
</xs:annotation>
<xs:complexType>
@@ -100,8 +107,12 @@ under the License.
<xs:annotation>
<xs:documentation>
Give the location where is groovy file that contains the
test suite.
- You can use a flexible url location like
+ You can use a flexible URL location like
component://service/src/test/groovy/org/apache/ofbizservice/test/TestServices.groovy
+ This is rather to be used during development and testing
+ When going to production you need to move the test file
under main. See existing examples.
+ When going to production; for performance reason
(compilation), you should use rather use junit-test-suite and move the test
file under main and use.
+ See existing examples.
</xs:documentation>
</xs:annotation>
</xs:attribute>