You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-cvs@xml.apache.org by da...@apache.org on 2004/06/25 20:33:25 UTC

cvs commit: xml-xmlbeans/v2/test/tools/lib/ant-ext antexts.jar

daveremy    2004/06/25 11:33:25

  Modified:    v2       build.xml testbuild.xml
               v2/test/docs BuildingAndRunningTests.txt
                        TestOrganization.txt
               v2/test/tools/lib/ant-ext antexts.jar
  Log:
  Contributed by: Yana Kadiyska
  Enabled asserts on demand (-Dasserts="on")
  Added building of xbean.jar if missing
  Restructured directory test/build
  Cleaning up incremental build to simplify building of a specific area
  Clean up build.xml file
  
  Revision  Changes    Path
  1.71      +0 -593    xml-xmlbeans/v2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/build.xml,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- build.xml	22 Jun 2004 17:57:39 -0000	1.70
  +++ build.xml	25 Jun 2004 18:33:25 -0000	1.71
  @@ -825,7 +825,6 @@
   
     <target name="checkintest">
       <ant antfile="${testbuild.file}" target="checkin"/>
  -    <!--<antcall target="bootstrap"/> -->
       <antcall target="marshal-drt"/>
       <antcall target="binding-drt"/>
     </target>
  @@ -940,310 +939,6 @@
     </target>
   
   
  -
  -  <!-- =================================================================== -->
  -  <!--
  -  <target name="drt" depends="builddrt, rundrt, drtxpath"/>
  -
  -  <target name="rundrt" >
  -    <echo message="Running random tester"/>
  -    <java classname="Random" fork="true" failonerror="true">
  -       <classpath>
  -            <pathelement location="build/ar/xbean.jar"/>
  -            <pathelement location="build/lib/jsr173_api.jar"/>
  -            <pathelement location="build/private/lib/easypo.jar"/>
  -            <pathelement location="build/private/lib/random.jar"/>
  -       </classpath>
  -       <jvmarg value="-ea"/>
  -       <arg line="-seed 0 -i 20 -noquery"/>
  -    </java>
  -    -->
  -
  -    <!--
  -    <echo message="Running xbean product drt tests"/>
  -    <echo message="JUnit output being sent to build/test/output/drt-product.txt"/>
  -    <junit fork="yes" printsummary="yes" haltonfailure="yes" showoutput="yes">
  -      <jvmarg value="-ea"/>
  -      <sysproperty key="xbean.rootdir" value="${basedir}"/>
  -      <sysproperty key="treeasserts" value="true"/>
  -      <classpath>
  -        <pathelement location="external/lib/junit.jar"/>
  -        <pathelement location="build/ar/xbean.jar"/>
  -        <pathelement location="build/lib/jsr173_api.jar"/>
  -        <pathelement location="build/lib/jsr173_ri.jar"/>
  -        <pathelement location="build/private/lib/drt.jar"/>
  -        <pathelement location="build/private/lib/easypo.jar"/>
  -        <pathelement location="build/private/lib/schemas.jar"/>
  -        <pathelement location="build/private/lib/xstypes.jar"/>
  -        <pathelement location="build/private/lib/enumtest.jar"/>
  -        <pathelement location="build/private/classes/marshal"/>
  -      </classpath>
  -      <formatter type="plain"/>
  -      <test name="drtcases.SmokeTests" outfile="build/test/output/drt-product" />
  -    </junit>
  -
  -    <!- - Disabled, to enable update catalog test/cases/xmlcatalog/cat.xml
  -    <antcall target="xmlcatalogTest" /- ->
  -
  -    <antcall target="extensionsTest" />
  -  </target>
  -  -->
  -  <!--
  -  <path id="xmlcatalogTest.run.path">
  -    <pathelement location="build/lib/xbean.jar"/>
  -    <pathelement location="build/lib/jsr173_api.jar"/>
  -    <pathelement location="build/lib/resolver.jar"/>
  -  </path>
  -
  -  <target name="xmlcatalogTest">
  -    <echo message="___ XML Catalog Test ___"/>
  -    <java classname="${schema_compiler}" classpathref="xmlcatalogTest.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-catalog test/cases/xmlcatalog/cat.xml -out build/private/lib/xmlcatalogTest.jar test/cases/xmlcatalog/includer1.xsd"/>
  -    </java>
  -    <echo message="___ XML Catalog Test :    PASSED"/>
  -  </target>
  -  -->
  -  <!--
  -  <target name='drtxpath' depends="xbean_xpath.jar">
  -    <echo message="DRT: XPath Jaxen    - JUnit output being sent to build/test/output/drt-xpath.txt"/>
  -    <junit fork="yes" printsummary="yes" haltonfailure="yes" showoutput="yes">
  -      <jvmarg value="-ea"/>
  -      <sysproperty key="xbean.rootdir" value="${basedir}"/>
  -      <sysproperty key="treeasserts" value="true"/>
  -      <classpath>
  -        <pathelement location="external/lib/junit.jar"/>
  -        <pathelement location="build/ar/xbean.jar"/>
  -        <pathelement location="build/lib/jsr173_api.jar"/>
  -        <pathelement location="build/lib/jsr173_ri.jar"/>
  -        <pathelement location="build/private/lib/drt.jar"/>
  -        <pathelement location="build/lib/xbean_xpath.jar"/>
  -      </classpath>
  -      <formatter type="plain"/>
  -      <test name="drtcases.JaxenXPathTests" outfile="build/test/output/drt-xpath"/>
  -    </junit>
  -  </target>
  -
  -  <target name="builddrt" depends="drt.jar, random.jar, eric"/>
  -  -->
  -  <!-- extensions test -->
  -  <!--
  -  <fileset id="extension.jars" dir="build/private/lib">
  -    <include name="extensions.jar"/>
  -    <include name="fixedAttrBean.jar"/>
  -    <include name="averageCase.jar"/>
  -    <include name="multInterfaces.jar"/>
  -    <include name="readOnlyBean.jar"/>
  -    <include name="ValueRestriction.jar"/>
  -  </fileset>
  -
  -  <fileset id="xbean.jars" dir="build/lib">
  -    <include name="xbean.jar"/>
  -    <include name="jsr173_api.jar"/>
  -    <include name="jsr173_ri.jar"/>
  -  </fileset>
  -
  -  <path id="cpWithXbeanJars">
  -      <fileset refid="xbean.jars" />
  -      <!- - JAM needs tools.jar which should be on ${java.class.path} - ->
  -      <pathelement path="${java.class.path}" />
  -  </path>
  -  -->
  -  <!--
  -  <target name="extensionsTest" depends="extensions.compile">
  -    <echo message="JUnit output being sent to build/test/output/drt-extensions.txt"/>
  -    <junit fork="yes" printsummary="yes" haltonfailure="yes" showoutput="yes">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="external/lib/junit.jar"/>
  -        <pathelement location="build/private/lib/extensions.jar"/>
  -        <pathelement location="build/test/extensionsuse"/>
  -        <fileset refid="extension.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <formatter type="plain"/>
  -      <test name="drtcases.ExtensionsTest" outfile="build/test/output/drt-extensions"/>
  -    </junit>
  -  </target>
  -  -->
  -  <!--The extensions use the bean types, compile first-->
  -  <!--
  -  <target name="simpleBeans.check">
  -    <uptodate property="simpleBeans.notRequired" targetfile="build/private/lib/fixedAttrBean.jar">
  -      <srcfiles dir="test/src/extensions" includes="**/*"/>
  -      <srcfiles dir="test/src/extensionsuse" includes="**/*"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -  -->
  -    <!--
  -  <target name="build.simpleBeans" unless="simpleBeans.notRequired" depends="simpleBeans.check">
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/fixedAttrBean.jar test/src/extensions/fixedAttrBean/po.xsd"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/averageCase.jar test/src/extensions/averageCase/po.xsd"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/multInterfaces.jar test/src/extensions/multInterfaces/po.xsd"/>
  -    </java>
  -
  -    <!- - **Pre/Post Handlers - ->
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/readOnlyBean.jar test/src/extensions/prePostFeature/readOnlyBean/po.xsd"/>
  -    </java>
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/ValueRestriction.jar test/src/extensions/prePostFeature/ValueRestriction/company.xsd"/>
  -    </java>
  -
  -  </target>
  -
  -  <target name="extensions.compile" depends="build.simpleBeans, simpleBeans.check" unless="simpleBeans.notRequired">
  -    <mkdir dir="build/test/extensions"/>
  -    <javac srcdir="test/src/extensions" destdir="build/test/extensions" debug="on" source="${javac.source}" target="${javac.target}">
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <fileset refid="extension.jars"/>
  -      </classpath>
  -    </javac>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/extensions.jar test/src/extensions/myPackage"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/fixedAttrBean.jar test/src/extensions/fixedAttrBean"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/averageCase.jar test/src/extensions/averageCase"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/multInterfaces.jar -src  build/private/lib/temp test/src/extensions/multInterfaces"/>
  -    </java>
  -
  -    <!- -Pre Post Feature - ->
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/readOnlyBean.jar -src  build/private/lib/temp test/src/extensions/prePostFeature/readOnlyBean"/>
  -    </java>
  -
  -    <java classname="${schema_compiler}" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <classpath>
  -        <path refid="cpWithXbeanJars"/>
  -        <pathelement location="build/test/extensions"/>
  -      </classpath>
  -      <arg line="-out build/private/lib/ValueRestriction.jar -src  build/private/lib/temp test/src/extensions/prePostFeature/ValueRestriction"/>
  -    </java>
  -
  -
  -    <mkdir dir="build/test/extensionsuse"/>
  -    <javac srcdir="test/src/extensionsuse" destdir="build/test/extensionsuse" debug="on" source="${javac.source}" target="${javac.target}">
  -      <classpath>
  -        <fileset refid="xbean.jars"/>
  -        <pathelement location="external/lib/junit.jar"/>
  -        <fileset refid="extension.jars"/>
  -        <pathelement location="build/test/extensionsuse"/>
  -      </classpath>
  -    </javac>
  -  </target>
  -  -->
  -  <!-- eric test
  -  <target name="eric" depends="erictest.jar"/>
  -  -->
  -
  -  <!-- test target ================================================== -->
  -  <!--
  -  <path id="test.compile.path">
  -    <pathelement location="external/lib/junit.jar"/>
  -    <pathelement location="build/ar/xbean.jar"/>
  -    <pathelement location="build/lib/jsr173_api.jar"/>
  -    <pathelement location="build/private/lib/easypo.jar"/>
  -    <pathelement location="build/private/lib/schemas.jar"/>
  -    <pathelement location="build/private/lib/enumtest.jar"/>
  -    <pathelement location="build/private/lib/xstypes.jar"/>
  -    <pathelement location="build/private/classes/marshal"/>
  -    <pathelement location="build/classes/xmlinputstream"/>
  -  </path>
  -
  -  <path id="test.run.path">
  -    <pathelement location="build/ar/xbean.jar"/>
  -    <pathelement location="external/lib/junit.jar"/>
  -  </path>
  -  -->
  -  <!-- builddrt target ============================================== -->
  -  <!--
  -  <target name="drt.classes" depends="dirs, easypo.jar, schemas.jar, xstypes.jar,
  -        enumtest.jar, test_marshal.classes, jsr173_ri.jar">
  -    <mkdir dir="build/private/classes/drt"/>
  -    <javac
  -       srcdir="test/src/drt"
  -       destdir="build/private/classes/drt"
  -       classpathref="test.compile.path"
  -       source="${javac.source}" target="${javac.target}"
  -       debug="on"/>
  -  </target>
  -
  -  <target name="drt.jar" depends="drt.classes">
  -    <jar jarfile="build/private/lib/drt.jar" basedir="build/private/classes/drt"/>
  -  </target>
  -  -->
     <!-- stsschema (for testing) target ================================ -->
   
     <path id="scomp.run.path">
  @@ -1265,293 +960,5 @@
       </java>
     </target>
   
  -  <!-- soaptest target ============================================ -->
  -  <!--
  -  <target name="soaptest.classes" depends="dirs, stsschema.jar">
  -    <mkdir dir="build/private/classes/soaptest"/>
  -    <javac srcdir="test/src/soaptest" destdir="build/private/classes/soaptest" source="${javac.source}" target="${javac.target}" debug="on">
  -      <classpath>
  -        <pathelement location="external/lib/jdom.jar"/>
  -        <pathelement location="external/lib/junit.jar"/>
  -        <pathelement location="build/ar/xbean.jar"/>
  -        <pathelement location="build/private/lib/stsschema.jar"/>
  -      </classpath>
  -    </javac>
  -
  -  </target>
  -
  -  <target name="soaptest.jar" depends="soaptest.classes">
  -    <jar jarfile="build/private/lib/soaptest.jar" basedir="build/private/classes/soaptest"/>
  -  </target>
  -  -->
  -  <!-- erictest target ============================================= -->
  -
  -  <!--target name="erictest.classes" depends="dirs, xbean, ericschema.jar, jsr173_api.jar"-->
  -  <!--
  -  <target name="erictest.classes" depends="dirs, xbean, jsr173_api.jar">
  -    <mkdir dir="build/private/classes/erictest"/>
  -    <javac srcdir="test/src/erictest" destdir="build/private/classes/erictest" source="${javac.source}" target="${javac.target}" debug="on">
  -      <classpath>
  -        <pathelement location="build/ar/xbean.jar"/>
  -        <pathelement location="build/private/lib/ericschema.jar"/>
  -        <pathelement location="build/lib/jsr173_api.jar"/>
  -      </classpath>
  -    </javac>
  -  </target>
  -
  -  <target name="erictest.jar" depends="erictest.classes">
  -    <jar jarfile="build/private/lib/erictest.jar" basedir="build/private/classes/erictest"/>
  -  </target>
  -  -->
  -  <!-- random target ============================================= -->
  -  <!--
  -  <target name="random.classes" depends="dirs, xbean, easypo.jar">
  -    <mkdir dir="build/private/classes/random"/>
  -    <javac
  -       srcdir="test/src/random"
  -       destdir="build/private/classes/random"
  -       classpathref="test.compile.path"
  -       source="${javac.source}" target="${javac.target}"
  -       debug="on"/>
  -  </target>
  -
  -  <target name="random.jar" depends="random.classes">
  -    <jar jarfile="build/private/lib/random.jar" basedir="build/private/classes/random"/>
  -  </target>
  -  -->
  -  <!-- teststore target ============================================= -->
  -  <!--
  -  <target name="teststore.classes" depends="dirs">
  -    <mkdir dir="build/private/classes/teststore"/>
  -    <javac srcdir="test/src/teststore" destdir="build/private/classes/teststore" source="${javac.source}" target="${javac.target}" debug="on">
  -      <classpath>
  -        <pathelement location="build/private/classes/simpletypes"/>
  -        <pathelement location="build/private/classes/xmlcomp"/>
  -        <pathelement location="build/private/classes/typestore"/>
  -        <pathelement location="build/private/classes/xmlpublic"/>
  -        <pathelement location="build/private/classes/typeimpl"/>
  -      </classpath>
  -    </javac>
  -
  -  </target>
  -
  -  <target name="teststore.jar" depends="teststore.classes">
  -    <jar jarfile="build/private/lib/teststore.jar" basedir="build/private/classes/teststore"/>
  -  </target>
  -  -->
  -  <!-- simpletypes (for testing) target ============================= -->
  -  <!--
  -  <target name="simpletypes.check">
  -    <uptodate property="simpletypes.notRequired" targetfile="build/private/lib/simpletypes.jar">
  -      <srcfiles dir="test/cases/schema/simple" includes="**/*.xsd"/>
  -      <srcfiles dir="build/private/lib" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="simpletypes.jar" depends="simpletypes.check, dirs" unless="simpletype.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-name schema.test.simple -out build/private/lib/simpletypes.jar test/cases/schema/simple"/>
  -    </java>
  -  </target>
  -  -->
  -  <!-- easypo (for testing) target ================================== -->
  -  <!--
  -  <target name="easypo.check">
  -    <uptodate property="easypo.notRequired" targetfile="build/private/lib/easypo.jar">
  -      <srcfiles dir="test/src/easypo" includes="**/*"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="easypo.jar" depends="easypo.check, dirs, xbean" unless="easypo.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-out build/private/lib/easypo.jar test/src/easypo"/>
  -    </java>
  -  </target>
  -  -->
  -  <!-- schemas (for testing) target ================================ -->
  -  <!--
  -  <target name="schemas.check">
  -    <uptodate property="schemas.notRequired" targetfile="build/private/lib/schemas.jar">
  -      <srcfiles dir="test/src/schemas" includes="**/*.xsd"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="schemas.jar" depends="schemas.check, dirs, xbean" unless="schemas.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-out build/private/lib/schemas.jar test/src/schemas"/>
  -    </java>
  -  </target>
  -  -->
  -  <!-- ericschema (for testing) target ================================ -->
  -  <!--
  -  <target name="ericschema.check">
  -    <uptodate property="ericschema.notRequired" targetfile="build/private/lib/ericschema.jar">
  -      <srcfiles dir="test/src/ericschema" includes="**/*.xsd"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="ericschema.jar" depends="ericschema.check, dirs, xbean" unless="ericschema.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-debug -src build/private/src -out build/private/lib/ericschema.jar test/src/ericschema"/>
  -    </java>
  -  </target>
  -  -->
  -  <!-- enumtest (for testing) target ================================= -->
  -  <!--
  -  <target name="enumtest.check">
  -    <uptodate property="enumtest.notRequired" targetfile="build/private/lib/enumtest.jar">
  -      <srcfiles dir="test/src/enumtest" includes="**/*.xsd"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="enumtest.jar" depends="enumtest.check, dirs, xbean" unless="enumtest.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-out build/private/lib/enumtest.jar test/src/enumtest"/>
  -    </java>
  -  </target>
  -  -->
  -  <!-- xstypes (for testing) target ================================= -->
  -  <!--
  -  <target name="xstypes.check">
  -    <uptodate property="xstypes.notRequired" targetfile="build/private/lib/xstypes.jar">
  -      <srcfiles dir="test/cases/schema/simple" includes="**/*.xsd"/>
  -      <srcfiles dir="build/ar" includes="xbean.jar"/>
  -    </uptodate>
  -  </target>
  -
  -  <target name="xstypes.jar" depends="xstypes.check, dirs, xbean" unless="xstypes.notRequired">
  -    <java classname="${schema_compiler}" classpathref="scomp.run.path" fork="true" failonerror="true">
  -      <jvmarg value="-ea"/>
  -      <arg line="-out build/private/lib/xstypes.jar test/src/xstypes"/>
  -    </java>
  -  </target>
  -  -->
  -
  -  <!-- stream conformance tests ======================================= -->
  -  <!--
  -  <target name="streamtest.classes" depends="dirs">
  -    <mkdir dir="build/private/classes/streamtest"/>
  -    <javac
  -      srcdir="test/src/streamtest"
  -      destdir="build/private/classes/streamtest"
  -      classpathref="test.compile.path"
  -      source="${javac.source}" target="${javac.target}"
  -      debug="on"/>
  -  </target>
  -
  -  <target name="streamtest.jar" depends="streamtest.classes">
  -    <jar jarfile="build/private/lib/streamtest.jar" basedir="build/private/classes/streamtest"/>
  -  </target>
  -
  -  <path id="run.streamconf.path">
  -    <path refid="test.run.path"/>
  -    <pathelement location="build/private/classes/streamtest/"/>
  -  </path>
  -
  -  <target name="streamconf" depends="streamtest.jar">
  -    <java classname="streamtest.XmlStreamConformance"
  -          classpathref="run.streamconf.path"
  -          fork="true">
  -      <jvmarg value="-ea"/>
  -      <!- -arg line="test/cases/streamconf/small.xml" /- ->
  -      <arg line="test/cases/streamconf/dtd.xml" />
  -    </java>
  -  </target>
  -  -->
  -
  -
  -  <!-- test xpath target ============================================= -->
  -  <!--
  -  <target name="test_xpath.classes" depends="dirs, xmlpublic.jar, jsr173_api.jar, xbean_xpath.jar">
  -    <mkdir dir="build/private/classes/testxpath"/>
  -    <javac
  -       srcdir="test/src/xpath"
  -       destdir="build/private/classes/testxpath"
  -       classpathref="testxpath.compile.path"
  -       source="${javac.source}" target="${javac.target}"
  -       debug="on">
  -      <classpath id="testxpath.compile.path">
  -          <pathelement location="build/lib/xmlpublic.jar"/>
  -          <pathelement location="build/lib/jsr173_api.jar"/>
  -          <pathelement location="build/lib/xbean_xpath.jar"/>
  -          <pathelement location="build/classes/xmlinputstream"/>
  -      </classpath>
  -    </javac>
  -  </target>
  -  -->
  -  <!--
  -  <target name="run_test_xpath" depends="test_xpath.classes, xbean_xpath.jar">
  -    <java classname="org.apache.xmlbeans.impl.xpath.jaxen.XBeansDemo" fork="true" failonerror="true">
  -      <classpath>
  -          <pathelement location="build/lib/xbean.jar"/>
  -          <pathelement location="build/lib/jsr173_api.jar"/>
  -          <pathelement location="build/lib/xbean_xpath.jar"/>
  -          <pathelement location="build/private/classes/testxpath"/>
  -      </classpath>
  -      <jvmarg value="-da"/>
  -      <arg line='test/cases/xpath/much_ado.xml "PLAY/ACT/SCENE/SPEECH/SPEAKER"'/>
  -    </java>
  -  </target>
  -  -->
  -    <!-- test marshal target ============================================= -->
  -    <!--
  -    <target name="test_marshal.classes" depends="marshal.classes">
  -        <mkdir dir="build/private/classes/marshal"/>
  -        <javac
  -            srcdir="test/cases/marshal"
  -            destdir="build/private/classes/marshal"
  -            classpathref="testmarshal.compile.path"
  -            source="${javac.source}" target="${javac.target}"
  -            debug="on">
  -            <classpath id="testmarshal.compile.path">
  -                <pathelement location="build/classes/binding"/>
  -                <pathelement location="build/classes/marshal"/>
  -                <pathelement location="build/classes/common"/>
  -                <pathelement location="build/classes/configschema"/>
  -                <pathelement location="build/classes/typeimpl"/>
  -                <pathelement location="build/classes/xmlinputstream"/>
  -                <pathelement location="build/classes/xmlpublic"/>
  -                <pathelement location="build/lib/jsr173_api.jar"/>
  -                <pathelement location="build/lib/xmlpublic.jar"/>
  -            </classpath>
  -        </javac>
  -    </target>
  -    -->
  -    <!-- temporary build utils ... zieg =============
  -    <target name='binding-test' depends='declare-tasks, jam'>
  -        <mkdir dir='build/private/classes/marshal'/>
  -        <java2schema
  -            srcdir='test/cases/marshal'
  -            includes='com/mytest/**/*.java'
  -            destdir='build/private/classes/marshal'>
  -        </java2schema>
  -    </target>
  -    <target name='declare-tasks'>
  -        <taskdef name='java2schema'
  -            classname='org.apache.xmlbeans.impl.binding.compile.Java2SchemaTask'>
  -            <classpath>
  -                <pathelement location="build/classes/binding"/>
  -                <pathelement location="build/classes/compile"/>
  -                <pathelement location="build/classes/jam"/>
  -                <pathelement location="build/classes/common"/>
  -                <pathelement location="build/classes/configschema"/>
  -                <pathelement location="build/classes/typeimpl"/>
  -                <pathelement location="build/classes/xmlinputstream"/>
  -                <pathelement location="build/classes/xmlpublic"/>
  -                <pathelement location="build/lib/jsr173_07_api.jar"/>
  -                <pathelement location="build/lib/xmlpublic.jar"/>
  -            </classpath>
  -        </taskdef>
  -    </target>
  -    -->
   
   </project>
  
  
  
  1.14      +146 -77   xml-xmlbeans/v2/testbuild.xml
  
  Index: testbuild.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/testbuild.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- testbuild.xml	22 Jun 2004 19:01:12 -0000	1.13
  +++ testbuild.xml	25 Jun 2004 18:33:25 -0000	1.14
  @@ -30,14 +30,16 @@
       <property name="build.dir.test.lib" value="${build.dir.test}/lib"/>
       <property name="build.dir.test.schemas" value="${build.dir.test}/schemas"/>
       <property name="build.dir.test.schemas.lib" value="${build.dir.test.lib}/schemajars"/>
  -    <property name="build.dir.test.schemas.src" value="${build.dir.test}/src/schemas"/>
  -    <property name="build.dir.test.src" value="${build.dir.test}/src/tests"/>
  +    <property name="build.dir.test.schemas.src" value="${build.dir.test.schemas}/src"/>
  +    <property name="build.dir.test.src" value="${build.dir.test}/classes"/>
       <property name="build.dir.test.tools" value="${build.dir.test}/tools"/>
       <property name="xbeans.test.tools" value="${xbeans.test.root}/tools"/>
       <property name="xbeans.test.tools.lib" value="${xbeans.test.tools}/lib"/>
       <property name="xbeans.test.tools.src" value="${xbeans.test.tools}/src"/>
       <property name="build.dir.test.marshalling" value="${build.dir.test}/classes/marshal"/>
   
  +    <property name="asserts" value="off"/>
  +
       <!-- End of testenv.properties -->
   
       <target name="write.propertyfile">
  @@ -252,42 +254,43 @@
       <target name="build.schemas" depends="init, copy.schemas, uncompress"
           description="Build test schemas.">
           <echo message="basedir: ${basedir}"/>
  -        <!--compile checkin schemas only for checkin -->
  +          <!-- scomp on Schema.dirs -->
           <if>
  -            <or>
  -                <not>
  -                    <isset property="tests.spec"/>
  -                </not>
  -                <equals arg1="${tests.spec}" arg2="**/checkin/**"/>
  -            </or>
  +            <isset property="this.schema.dirs"/>
               <then>
  -                <foreach list="${checkin.schema.dirs}"
  +                <foreach list="${this.schema.dirs}"
                       target="scomp.dir"
  -                    param="schemasrc" trim="true"/>
  -                <foreach list="${checkin.schema.standalone.files}"
  -                    target="scomp.single"
  -                    param="schemasrc" trim="true"/>
  +                    param="schemasrc" trim="true"
  +                    inheritall="true" inheritrefs="true"/>
               </then>
               <else>
                   <foreach list="${schema.dirs}"
                       target="scomp.dir"
  -                    param="schemasrc" trim="true"/>
  +                    param="schemasrc" trim="true"
  +                    inheritall="true" inheritrefs="true"/>
  +            </else>
  +
  +        </if>
  +
  +        <!-- Check if uncompress is required -->
  +        <if>
  +            <isset property="this.schema.standalone.dirs"/>
  +            <then>
  +                <antcall target="uncompress"/>
  +                <foreach list="${this.schema.standalone.dirs}"
  +                    target="scomp.single"
  +                    param="schemasrc" trim="true"
  +                    inheritall="true" inheritrefs="true"/>
  +            </then>
  +            <else>
                   <foreach list="${schema.standalone.files}"
                       target="scomp.single"
  -                    param="schemasrc" trim="true"/>
  +                    param="schemasrc" trim="true"
  +                    inheritall="true" inheritrefs="true"/>
               </else>
           </if>
  -
  -
  -        <jar destfile="${build.dir.test.lib}/xmlcases.jar"
  -            basedir="${build.dir.test.schemas}" update="false"
  -            includes="**/*.*"
  -            excludes="**/*.xsd, xstc/**"/>
  -
  -        <jar destfile="${build.dir.test.lib}/xsdcases.jar"
  -            basedir="${build.dir.test.schemas}" update="false"
  -            includes="**/*.xsd"
  -            excludes="xstc/**"/>
  +        <ant target="build.xmlcases"/>
  +        <ant target="build.xsdcases"/>
       </target>
   
       <target name="copy.schemas">
  @@ -427,35 +430,46 @@
   
       <!-- =============================================================== -->
       <!-- START: Tests and Tools build                                    -->
  -    <!-- Should now be building xbean.jar using wls/build-xmlbeans.xml -->
  -    <target name="build">
  -        <!--
  -        TODO:
  -        Check if XmlBeans has been built.. if not call the xmlbeans build
  -        targets first or just end the build
  -        -->
  +     <target name="check.xbean.jar">
  +       <if>
  +       <not>
  +       <available file="${build.lib}/xbean.jar"/>
  +       </not>
  +       <then>
  +       <ant target="default"/>
  +       </then>
  +       </if>
  +     </target>
  +    <target name="build" depends="check.xbean.jar" description="Build the tests. Params: -Dtest.area">
           <!-- Lets test conditional compile -->
           <if>
  +            <or>
               <isset property="build.area"/>
  +            <isset property="test.area"/>
  +            </or>
               <then>
                   <echo message="build.area is set"/>
                   <foreachloop list="${area.names}" param="curval">
                       <loop>
  +                        <foreachloop list="${test.area}" param="test.area.curval">
  +                        <loop>
                           <if>
  -                            <equals arg1="${build.area}" arg2="${curval}" trim="true"/>
  +                            <equals arg1="${test.area.curval}" arg2="${curval}" trim="true"/>
                               <then>
  -                                <echo message="MATCH: ${curval} == ${build.area}"/>
  +                                <echo message="MATCH: ${curval} == ${test.area.curval}"/>
                                   <property name="matchfound" value="true"/>
  -                                <antcall target="build.area.${build.area}"/>
  +                                <antcall target="build.area.${test.area.curval}"/>
                               </then>
                           </if>
  +                          </loop>
  +                </foreachloop>
                       </loop>
                   </foreachloop>
                   <fail unless="matchfound"
                       message="build.area did not match any area from: ${area.names}"/>
               </then>
               <else>
  -                <echo message="build.area is not set"/>
  +                <echo message="test.area is not set"/>
   
                   <antcall target="build.schemas"/>
                   <antcall target="build.tests"/>
  @@ -508,27 +522,8 @@
       
       <target name="build.tests" depends="init, build.test.tools, build.xpath,extensions.build"
           description="Build the tests">
  -         <if>
  -            <or>
  -                <not>
  -                    <isset property="tests.spec"/>
  -                </not>
  -                <equals arg1="${tests.spec}" arg2="**/checkin/**"/>
  -            </or>
  -            <then>
  -                 <javac srcdir="${xbeans.test.src}"
  -            excludes="**/detailed/**,**/drt/**"
  -            destdir="${build.dir.test.src}"
  -            classpathref="test.run.classpath"
  -            debug="on"
  -            source="1.4"
  -            optimize="on"
  -            verbose="false"
  -            failonerror="true">
  -        </javac>
  -            </then>
  -        <else>
  -        <javac srcdir="${xbeans.test.src}"
  +      
  +         <javac srcdir="${xbeans.test.src}"
               excludes="**/drt/**"
               destdir="${build.dir.test.src}"
               classpathref="test.run.classpath"
  @@ -538,8 +533,6 @@
               verbose="false"
               failonerror="true">
           </javac>
  -        </else>
  -        </if>
           <jar destfile="${build.dir.test.lib}/testcases.jar"
               basedir="${build.dir.test.src}" update="true"
               excludes="**/*.java"/>
  @@ -551,9 +544,13 @@
       <!-- =============================================================== -->
       <!-- START: Incremental build targets                                -->
   
  -    <property name="area.names" value="xmlobject, dom, xpath, xmlcursor,
  -                            ValidatingXSRTests, checkin"/>
  +    <property name="area.names" value="compile, dom, misc, random, 
  +                                       ValidatingXSRTests,xmlcursor, xmlobject,
  +                                       xmltokensource, checkin"/>
   
  +    <target name="list.areas" description="List areas for -Dtest.area param">
  +    <echo message="${area.names}"/>   
  +    </target>
       <target name="unit.build" depends="init, copy.schemas, build.test.tools">
           <!--
           Properties that need to be set for this target to work
  @@ -599,7 +596,7 @@
           </if>
           <antcall target="build.xmlcases"/>
           <antcall target="build.xsdcases"/>
  -        <echo message="***EXCLUDE : ${excludes.from.compile}"/>
  +     
           <javac srcdir="${xbeans.test.src}"
               destdir="${build.dir.test.src}"
               includes="${includes.for.compile}"
  @@ -673,12 +670,38 @@
   
           <property name="includes.for.compile"
               value="**/xmlobject/**/*.java"/>
  -       <!-- <property name="excludes.from.compile"
  -            value="**/extensions/**"/> -->
  -      
  +     
  +        <property name="testcasejar.update" value="true"/>
  +        <antcall target="unit.build"/>
  +
  +    </target>
  +
  +
  +      <target name="build.area.misc">
  +        <property name="this.schema.dirs"
  +            value="${build.dir.test.schemas}/xbean/misc"/>
  +        <property name="includes.for.compile"
  +            value="**/misc/**/*.java"/>
  +        <property name="testcasejar.update" value="true"/>
  +        <antcall target="unit.build"/>
  +    </target>
  +
  +     <target name="build.area.compile">
  +        <property name="this.schema.dirs"
  +            value="${build.dir.test.schemas}/xbean/compile"/>
  +        <property name="includes.for.compile"
  +            value="**/compile/**/*.java"/>
           <property name="testcasejar.update" value="true"/>
           <antcall target="unit.build"/>
  +    </target>
   
  +     <target name="build.area.xmltokensource">
  +        <property name="this.schema.dirs"
  +            value="${build.dir.test.schemas}/xbean/xmltokensource"/>
  +        <property name="includes.for.compile"
  +            value="**/xmltokensource/**/*.java"/>
  +        <property name="testcasejar.update" value="true"/>
  +        <antcall target="unit.build"/>
       </target>
   
       <target name="build.area.xmlcursor">
  @@ -723,11 +746,12 @@
           <antcall target="unit.build"/>
       </target>
   
  -    <!--TODO: need to compile a subset of the schemas; figure out what and set a separate var-->
  +  
       <!-- FREQ Target -->
       <target name="build.area.checkin" depends="clean.tests,extensions.build">
           <property name="includes.for.compile"
  -            value="**/checkin/**/*.java, **/common/**/*.java"/>
  +            value="**/checkin/**/*.java, 
  +                   **/common/**/*.java"/>
           <!--<property name="excludes.from.compile"
               value="**/extensions/**"/>-->
           <property name="this.schema.dirs"
  @@ -745,22 +769,48 @@
       <!-- =============================================================== -->
       <!-- START: JUNIT Tests                                              -->
       <target name="checkin">
  -        <property name="build.area" value="checkin"/>
  +        <property name="test.area" value="checkin"/>
           <antcall target="build"/>
         
           <antcall target="run.junit"/>
       </target>
   
       <target name="detailed">
  -        <property name="tests.spec" value="**/detailed/**"/>
  +        <property name="test.area" value="**/detailed/**"/>
           <antcall target="build"/>
           <antcall target="run.junit"/>
       </target>
   
  -    <target name="run.junit" depends="clean.reports">
  +     <target name="check.asserts">
  +        <echo message="${asserts}"/>
  +        <if>
  +           <not><equals arg1="${asserts}" arg2="on"/></not>
  +           <then>
  +                <echo message=
  +               "********************************************************"/>
  +                <echo message=
  +                "*Running w/ asserts off"/>
  +                  <echo message=
  +                "********************************************************"/>
  +               <property name="asserts.value" value=""/>
  +           </then>
  +           <else>
  +               <echo message=
  +               "********************************************************"/>
  +                <echo message=
  +                "*Running w/ asserts on. To disable pass -Dasserts='off'"/>
  +                  <echo message=
  +                "********************************************************"/>
  +               <property name="asserts.value" value="-ea"/>
  +           </else>
  +        </if>
  +
  +    </target>
  +
  +    <target name="run.junit" depends="clean.reports, check.asserts" description="Run the tests. Parameters: -Dtest.area, -Dtest.spec">
           <!-- The default test spec. To run a different set of tests
  -             set the property "tests.spec" before calling this target
  -             or by specifying on the command line -Dtests.spec -->
  +             set the property "test.area" before calling this target
  +             or by specifying on the command line -Dtest.area -->
           <taskdef name="junitX" classname="tools.JUnit.JUnitXTask"
               classpathref="test.run.classpath"/>
   
  @@ -769,8 +819,25 @@
           <property name="report.file" value="${report.dir}/TestReport.html"/>
   
           <mkdir dir="${report.dir}"/>
  -
  -        <property name="tests.spec" value="**/checkin/**"/>
  +         <if>
  +          <isset property="test.spec"/>
  +          <then> 
  +           <property name="test.area.run" value="${test.spec}"/>
  +          </then>  
  +           <else> 
  +            <if>
  +               <isset property="test.area"/>
  +               <then>
  +               <expandfileset list="${test.area}" param="curval"/>
  +               <property name="test.area.run" value="${curval}"/>
  +               </then>
  +              <else>   
  +                   <property name="test.area.run" value="**/checkin/**"/>
  +                 </else> 
  +           </if>
  +          </else>
  +          </if> 
  +        <echo message="Running ${test.area.run} "/>  
           <property name="showoutput" value="false"/>
           <junitX classpathref="test.run.classpath"
               formatter="tools.JUnit.XmlResultFormatterImpl"
  @@ -791,8 +858,10 @@
   
               <!-- This will pick up all files that match and end in .java
                    and try to run the corresponding test class -->
  +           
               <fileset dir="${build.dir.test.src}"
  -                includes="${tests.spec}"/>
  +                includes="${test.area.run}"
  +                  excludes="**/common/**"/>
           </junitX>
           <antcall target="generate.html.report"/>
           <echo message="${junit.failcount}"/>
  
  
  
  1.3       +83 -81    xml-xmlbeans/v2/test/docs/BuildingAndRunningTests.txt
  
  Index: BuildingAndRunningTests.txt
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/test/docs/BuildingAndRunningTests.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BuildingAndRunningTests.txt	8 Jun 2004 19:58:18 -0000	1.2
  +++ BuildingAndRunningTests.txt	25 Jun 2004 18:33:25 -0000	1.3
  @@ -1,81 +1,83 @@
  -README:
  -===========================================
  -Requirements:
  -* The Apache XmlBeans source from CVS.
  -* Ant version 1.6 or higher
  -* Ensure  JAVA_HOME and ANT_HOME (Requires Ant 1.6 or higher) are set up in your environment
  -
  -BUILDING TESTS:
  -* Change to xml-xmlbeans\v2 in the CVS download location.
  -* To build tests run
  -  ant testbuild
  -
  -BUILING AND RUNNING CHECKIN TESTS:
  -(NOTE: does not perform a checkin, just runs tests)
  -* Change to xml-xmlbeans\v2 in the CVS download location.
  -* build xml-beans
  -* run "ant checkintest"
  -
  -
  -Additional build sub-targets
  --------------------------------
  -* build.tools       - builds the tools used by the tests
  -* build.schemas     - builds the schema jars required for the tests
  -* build.tests       - builds the actual tests
  -* testclean         - Cleans everything that was built. For wlxbean this target
  -                      will also clean the CVS repository.
  -* clean.schemas     - Cleans the built schema files and jars
  -* clean.tests       - Cleans only the built test classes and jars
  -
  -==========================================
  -RUNNING TESTS:
  -The following targets are to be executed from the same directory as the build targets.
  -* This uses a custom task and Junit runner to run the tests. No additional files
  -  are required/generated. To run tests
  -
  -  ant run.junit [-Dtests.spec=...] [-Dshowoutput=true]
  -
  -  tests.spec is a wildcard expression that specifies the test to run
  -  - "**/checkin/**"    - Runs all checkin tests (This is the default if tests.spec
  -                         is not specified)
  -  - "**/detailed/**"   - Runs all detailed tests
  -
  -  - "**/AREA/**"       - all tests that have AREA in their path
  -
  -  NOTE: Always include the double-quotes around the wildcard expression. Its
  -        best to have the leading **/ in the expression.
  -        To run a single test try "**/test/package/TestClass"
  -
  - Example: Run all dom tests
  -      ant run.junit -Dtests.spec="**/dom/**" -Dshowoutput=true
  -
  -  showoutput controls if the output from the tests is displayed on the console.
  -  This is dependent on the Result formatter used by the JUnitX runner. The Xml
  -  Formatter thats comes with the JUnitX runner captures output and records it in
  -  the log file (build/test/report/Testlog.xml). Setting showoutput=true when using the Xml
  -  formatter will print output to the console and also capture it.
  -
  -  After the tests have finished the task generates a HTML report in
  -  build/test/reports/TestReport.html.
  -
  -==============================================
  -SPECIAL TARGETS:
  -
  -
  -* checkin    - this target will try to build the minimum set of schemas and tests
  -               required for running checkin tests and run them
  -
  -Incremental Build:
  -* For iterative dev mode, its faster to compile and run tests for just one area.
  -  To do this:
  -
  -  ant clean.tests                       // Removes any built test files.
  -  ant testbuild -Dbuild.area=<area>     // Build only that area.
  -  ant run.junit [-Dtests.spec="..."]    // Run the tests
  -
  -  Example: Build all dom tests
  -      ant testbuild -Dbuild.area=dom
  -
  -  All the targets can be chained together in one command
  -  ant clean.tests testbuild -Dbuild.area=... run.junit [-Dtests.spec=...]
  -
  +README:
  +===========================================
  +Requirements:
  +* The Apache XmlBeans source from CVS.
  +* Ant version 1.6 or higher
  +* Ensure  JAVA_HOME and ANT_HOME (Requires Ant 1.6 or higher) are set up in your environment
  +
  +
  +BUILING AND RUNNING CHECKIN TESTS:
  +(NOTE: does not perform a checkin, just runs tests)
  +It is recommended that you call at least clean.tests before a checkintest run.
  +
  +* Change to xml-xmlbeans\v2 in the CVS download location.
  +* build xml-beans (optional, the step below will do it for you if you don't)
  +* run "ant checkintest"
  +
  +TEST RESULTS:
  +Summary statistics are printed to the console. 
  +For details on the run, see the output files:
  +
  +  build/test/reports/TestReport.xml OR
  +  build/test/reports/TestReport.html (human-readable format)
  +
  +
  +
  +Additional build sub-targets
  +-------------------------------
  +* build.tools       - builds the tools used by the tests
  +* build.schemas     - builds the schema jars required for the tests
  +* build.tests       - builds the actual tests
  +* testclean         - Cleans everything that was built. For wlxbean this target
  +                      will also clean the CVS repository.
  +* clean.schemas     - Cleans the built schema files and jars
  +* clean.tests       - Cleans only the built test classes and jars
  +
  +==========================================
  +BUILDING AND RUNNING SUBSETS OF TESTS:
  +
  +From xml-xmlbeans\v2 in the CVS download location:
  +
  +* ant checkintest -- builds and runs the checkin tests(these should all pass before you commit your code)
  +* ant detailed    -- builds and runs detailed tests (these tests might have failures)
  +
  +To build and run a particular test area (areas correspond to top-level folders in test/src)
  +
  +* ant testbuild run.junit -Dtest.area="AREA"
  +  e.g. To build and run dom and xmlcursor tests
  +  
  +  ant testbuild run.junit -Dtest.area="dom,xmlcursor" 
  +
  +To build and run on a smaller granularity:
  +
  +You can not build on a smaller granularity than a test area. You can, however, run a smaller subset after a build:
  +E.g.
  +  * ant testbuild -Dtest.area="dom" 
  +  * ant junit.run -Dtest.spec="**/dom/checkin/**" 
  +Will build all dom tests and run the dom checkin tests.
  +
  +(Alternatively, you can chain the targets like this:
  +       ant testbuild run.junit -Dtest.area=dom -Dtest.spec="**/dom/checkin/**" )
  +
  +
  +Parameters:
  +  - test.area:   specifies an area to build and run
  +  - test.spec:   this option is valid at runtime only, 
  +                 and is used to allow the user to specify a fileset of their liking.
  +                 It should be used <b>INSTEAD</b> of test.area
  +                 ***If you provide both, -Dtest.spec will take precedence, and the area will be disregarded.
  +
  +  - showoutput: controls whether the output from the tests is displayed on the console.
  +                Default is false.
  +                This is dependent on the Result formatter used by the JUnitX runner. The Xml
  +                Formatter that comes with the JUnitX runner captures output and records it in
  +                the log file (build/test/report/Testlog.xml). Setting showoutput=true when using the Xml
  +                formatter will print output to the console and also capture it.
  +
  +  NOTE: Always include the double-quotes around the area or wildcard expression. 
  +       
  +        
  + Example: Run all dom tests (the following expressions are equivalent)
  +      ant run.junit -Dtest.area="dom" -Dshowoutput=true
  +      ant run.junit -Dtest.spec="**/dom/**" -Dshowoutput=true
  +
  
  
  
  1.2       +166 -163  xml-xmlbeans/v2/test/docs/TestOrganization.txt
  
  Index: TestOrganization.txt
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/test/docs/TestOrganization.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestOrganization.txt	8 Jun 2004 19:38:00 -0000	1.1
  +++ TestOrganization.txt	25 Jun 2004 18:33:25 -0000	1.2
  @@ -1,163 +1,166 @@
  -Best practices of writing tests
  -
  -1)  TESTS:
  -    Tests are written under version they apply to. For e.g. all tests related to
  -    v2 should be written under v2/test
  -
  -    The test folder is broken down into
  -    a) src
  -    b) cases
  -    c) tools
  -
  -    Below are the uses for each of the folders.
  -    a) Src:
  -
  -    This is where the actual test cases (in this case junit driver) live. The src
  -    folder is divided by functional areas at the highest level.
  -
  -    Each functional area is further sub divided by smaller functional areas (if
  -    required). If the division is not required then functional area is divided
  -    by importance of the tests. Importance are of 2 types
  -
  -    a) Checkin
  -    b) Detailed.
  -
  -    As the names suggest checkin tests are really important tests for a particular
  -    area while Detailed tests aim is to test more of edge cases/error condition/
  -    various kinds of input etc.
  -
  -    Not each top-level functional area needs to have checkin folder. If that area
  -    is not that widely used in the product there might just be detailed folder.
  -
  -    Since checkin tests have to be run by all developer every time they checkin
  -    the goal is to include the most crucial tests for each functional area of
  -    the product.
  -
  -    Also each top level/sub functional area can have a Common folder. The main
  -    goal here is group smaller utilities used to test functional area in one
  -    place so that both the Checkin/Detailed tests can use. If you feel the tools
  -    you are writing can be share across Cross-functional areas then use the Tools
  -    folder (more to come later in the doc). Any class which is not itself a Junit
  -    test should go into that folder, even if it is a superclass for a Junit test
  -    in the checkin/detailed folder. Same goes for all interfaces.
  -
  -
  -    Below is an e.g. of how one of the top-level functional area's directory
  -    structure may look like.
  -
  -    xmlcursor/
  -            |-checkin/
  -            |-detailed/
  -            |-common/
  -            |-saver/
  -            |     |-detailed/
  -            |     |-common/
  -            |-xpath/
  -            |     |-checkin/
  -            |     |-detailed/
  -            |     |-common/
  -
  -
  -    In this e.g. the xmlcursor area is broken down by checkin/detailed tests for
  -    smaller functionality that is cursor specific. For functionality in the
  -    cursor that is bigger sub folders are created with its own checkin/detailed/
  -    common areas. Again saver does not have a checkin folder since the tests in
  -    this area are not too important.
  -
  -    Overall when writing a test please consider which areas they fit and only
  -    create sub folder/top level folders only if necessary.
  -
  -2) CASES:
  -   This contains schema files/xml instances belonging to those schemas and schema
  -   independent xml instances which can be shared within the functional areas.
  -
  -   Cases is further divided into top level areas matching src folder and all
  -   schemas/xml instances used by functional areas are placed within this.
  -
  -   All schemas are compiled with scomp during the build process before compiling
  -   the tests. If you have added a top level folder to src then the schemas & xml
  -   instances for those tests should have their top-level folder within cases/xbean.
  -   If these schemas need to be compiled by scomp you will need to edit the
  -   testbuild.xml file to include the new folder in the build. Add this folder
  -   to the variable "schema.dirs". (More details below)
  -
  -
  -
  -   If you are just adding schemas to existing folders within xbean/cases then
  -   these will be automatically picked up in the build process.
  -
  -   If you have schemas that you don't want to pre compile in the build process
  -   please rename the extension from .xsd to .xsddonotcompile. In this way scomp
  -   will not pick up pre compile the schema.
  -
  -   The best practice for the cases folder is to try to reuse schemas within the
  -   functional areas. So please check the schemas we have before adding more schemas.
  -
  -   Since currently the directory structure is such that process sharing of
  -   schemas exists within top level functional areas (e.g. all tests with
  -   xmlcursor can reuse the schemas) there is some amount of duplication since
  -   schemas are not shared among top level functional areas. (for e.g. xmlcursor
  -   & xmlobject will not have schemas shared among them). Though we recognize this
  -   and are making attempts to revise the directory structure this has
  -   implications on how the tests run so for the immediate future this might stay
  -   as it is.
  -
  -
  -3) TOOLS:
  -    The tools area is meant for storing tools/utilities which help running the
  -    tests and reporting results. If you feel you have written a tool which could
  -    be used across all functional areas please put the source within tools/src.
  -    However before adding a tool please check the existing tools which we already
  -    have.
  -
  -4) BUILD FILE CHANGES:
  -    Depending on how tests and cases are added, the build file (testbuild.xml)
  -    will need to be updated.
  -
  -    a) New folder containing schemas added to cases:
  -       Append this folder to the property schema.dirs
  -        e.g:
  -        Old value:
  -        <property name="schema.dirs"
  -                value="${build.dir.test.schemas}/xbean/xmlcursor"/>
  -
  -        New value:
  -        <property name="schema.dirs"
  -                value="${build.dir.test.schemas}/xbean/xmlcursor,
  -                       ${build.dir.test.schemas}/xbean/NEWAREA"/>
  -
  -    b) New top-level area added to test (src/NEWAREA)
  -       Add this folder to the list of areas for incremental compile
  -       * Append the area name to the property area.names
  -       * Add a new target with the name "build.area.NEWAREA"
  -
  -         Properties that need to be set for this target to work
  -             * includes.for.compile - includes spec for javac
  -
  -         Optionally set the following properties
  -             * this.schema.dirs - list of folders for scomp
  -             * this.schema.standalone.dirs - list of individual schemas for scomp
  -             * testcasesjar.update - set to true if testcases.jar should be
  -                                     updated instead of overwriting
  -
  -         Add a call to target "unit.build" at the end of the target.
  -
  -         e.g:
  -         <target name="build.area.xmlcursor">
  -            <property name="this.schema.dirs"
  -                value="${build.dir.test.schemas}/xbean/xmlcursor"/>
  -            <property name="includes.for.compile"
  -                value="**/xmlcursor/**/*.java"/>
  -            <property name="testcasejar.update" value="true"/>
  -            <antcall target="unit.build"/>
  -        </target>
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  +Best practices of writing tests
  +
  +1)  TESTS:
  +    Tests are written under version they apply to. For e.g. all tests related to
  +    v2 should be written under v2/test
  +
  +    The test folder is broken down into
  +    a) src
  +    b) cases
  +    c) tools
  +
  +    Below are the uses for each of the folders.
  +    a) Src:
  +
  +    This is where the actual test cases (in this case junit driver) live. The src
  +    folder is divided by functional areas at the highest level.
  +
  +    Each functional area is further sub divided by smaller functional areas (if
  +    required). If the division is not required then functional area is divided
  +    by importance of the tests. Importance are of 2 types
  +
  +    a) Checkin
  +    b) Detailed.
  +
  +    As the names suggest checkin tests are really important tests for a particular
  +    area while Detailed tests aim is to test more of edge cases/error condition/
  +    various kinds of input etc.
  +
  +    Not each top-level functional area needs to have checkin folder. If that area
  +    is not that widely used in the product there might just be detailed folder.
  +
  +    Since checkin tests have to be run by all developer every time they checkin
  +    the goal is to include the most crucial tests for each functional area of
  +    the product.
  +
  +    Also each top level/sub functional area can have a Common folder. The main
  +    goal here is group smaller utilities used to test functional area in one
  +    place so that both the Checkin/Detailed tests can use. If you feel the tools
  +    you are writing can be share across Cross-functional areas then use the Tools
  +    folder (more to come later in the doc). Any class which is not itself a Junit
  +    test should go into that folder, even if it is a superclass for a Junit test
  +    in the checkin/detailed folder. Same goes for all interfaces.
  +
  +
  +    Below is an e.g. of how one of the top-level functional area's directory
  +    structure may look like.
  +
  +    xmlcursor/
  +            |-checkin/
  +            |-detailed/
  +            |-common/
  +            |-saver/
  +            |     |-detailed/
  +            |     |-common/
  +            |-xpath/
  +            |     |-checkin/
  +            |     |-detailed/
  +            |     |-common/
  +
  +
  +    In this e.g. the xmlcursor area is broken down by checkin/detailed tests for
  +    smaller functionality that is cursor specific. For functionality in the
  +    cursor that is bigger sub folders are created with its own checkin/detailed/
  +    common areas. Again saver does not have a checkin folder since the tests in
  +    this area are not too important.
  +
  +    Overall when writing a test please consider which areas they fit and only
  +    create sub folder/top level folders only if necessary.
  +
  +2) CASES:
  +   This contains schema files/xml instances belonging to those schemas and schema
  +   independent xml instances which can be shared within the functional areas.
  +
  +   Cases is further divided into top level areas matching src folder and all
  +   schemas/xml instances used by functional areas are placed within this.
  +
  +   All schemas are compiled with scomp during the build process before compiling
  +   the tests. If you have added a top level folder to src then the schemas & xml
  +   instances for those tests should have their top-level folder within cases/xbean.
  +   If these schemas need to be compiled by scomp you will need to edit the
  +   testbuild.xml file to include the new folder in the build. Add this folder
  +   to the variable "schema.dirs". (More details below)
  +
  +
  +
  +   If you are just adding schemas to existing folders within xbean/cases then
  +   these will be automatically picked up in the build process.
  +
  +   If you have schemas that you don't want to pre compile in the build process
  +   please rename the extension from .xsd to .xsddonotcompile. In this way scomp
  +   will not pick up pre compile the schema.
  +
  +   The best practice for the cases folder is to try to reuse schemas within the
  +   functional areas. So please check the schemas we have before adding more schemas.
  +
  +   Since currently the directory structure is such that process sharing of
  +   schemas exists within top level functional areas (e.g. all tests with
  +   xmlcursor can reuse the schemas) there is some amount of duplication since
  +   schemas are not shared among top level functional areas. (for e.g. xmlcursor
  +   & xmlobject will not have schemas shared among them). Though we recognize this
  +   and are making attempts to revise the directory structure this has
  +   implications on how the tests run so for the immediate future this might stay
  +   as it is.
  +
  +
  +3) TOOLS:
  +    The tools area is meant for storing tools/utilities which help running the
  +    tests and reporting results. If you feel you have written a tool which could
  +    be used across all functional areas please put the source within tools/src.
  +    However before adding a tool please check the existing tools which we already
  +    have.
  +
  +4) BUILD FILE CHANGES:
  +    Depending on how tests and cases are added, the build file (testbuild.xml)
  +    will need to be updated.
  +
  +    a) New folder containing schemas added to cases:
  +       Append this folder to the property schema.dirs
  +        e.g:
  +        Old value:
  +        <property name="schema.dirs"
  +                value="${build.dir.test.schemas}/xbean/xmlcursor"/>
  +
  +        New value:
  +        <property name="schema.dirs"
  +                value="${build.dir.test.schemas}/xbean/xmlcursor,
  +                       ${build.dir.test.schemas}/xbean/NEWAREA"/>
  +        If your schemas are needed in order to run checkintests please update the 
  +        "checkin.schema.dirs" property as well.
  +
  +
  +    b) New top-level area added to test (src/NEWAREA)
  +       Add this folder to the list of areas for incremental compile
  +       * Append the area name to the property area.names
  +       * Add a new target with the name "build.area.NEWAREA"
  +
  +         Properties that need to be set for this target to work
  +             * includes.for.compile - includes spec for javac
  +
  +         Optionally set the following properties
  +             * this.schema.dirs - list of folders for scomp
  +             * this.schema.standalone.dirs - list of individual schemas for scomp
  +             * testcasesjar.update - set to true if testcases.jar should be
  +                                     updated instead of overwriting
  +
  +         Add a call to target "unit.build" at the end of the target.
  +
  +         e.g:
  +         <target name="build.area.xmlcursor">
  +            <property name="this.schema.dirs"
  +                value="${build.dir.test.schemas}/xbean/xmlcursor"/>
  +            <property name="includes.for.compile"
  +                value="**/xmlcursor/**/*.java"/>
  +            <property name="testcasejar.update" value="true"/>
  +            <antcall target="unit.build"/>
  +        </target>
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  
  
  
  1.2       +59 -44    xml-xmlbeans/v2/test/tools/lib/ant-ext/antexts.jar
  
  	<<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org