Commits

Anonymous committed 2131712

Need a special classpath for unit testing with Hibernate

git-svn-id: http://svn.opensymphony.com/svn/propertyset/trunk@105bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

Comments (0)

Files changed (1)

     </fileset>
   </path>
 
+  <path id="cp.test">
+    <fileset dir="lib">
+      <include name="**/*.jar"/>
+      <exclude name="**/jalopy/*.jar"/>
+      <exclude name="**/xdoclet/*.jar"/>      
+    </fileset>
+  </path>
+
   <path id="jalopy.classpath">
     <fileset dir="lib/build/jalopy">
       <include name="*.jar"/>
     <mkdir dir="${build.test}"/>
     <javac srcdir="${src.java}" destdir="${build.test}" classpathref="cp" debug="on" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
     <javac srcdir="${src.test}" destdir="${build.test}" classpathref="cp" debug="on"/>
-
+    <copy todir="${build.test}">
+      <fileset dir="${src.test}">
+        <include name="**/*.xml" />
+        <include name="**/*.properties"/>
+      </fileset>
+    </copy>
     <mkdir dir="${dist}/docs/junit"/>
-    <junit printsummary="yes" haltonfailure="yes" haltonerror="yes" fork="yes">
+    <junit printsummary="withOutAndErr" haltonfailure="no" haltonerror="no" fork="yes">
       <classpath>
         <pathelement location="${build.test}"/>
-        <path refid="cp"/>
+        <path refid="cp.test"/>
       </classpath>
 
       <formatter type="xml"/>
       <batchtest todir="${dist}/docs/junit">
         <fileset dir="${src.test}">
           <include name="**/*Test.java"/>
+          <exclude name="**/Base*Test.java"/>
         </fileset>
       </batchtest>
     </junit>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.