cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] LenyaUnitTests Tue Jun 10 15:00:02 2003
Date Tue, 10 Jun 2003 13:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=LenyaUnitTests , version: 9 on Tue Jun 10 12:19:17
2003 by AndreasHartmann

+ !!Adding the Test to the Buildfile
+ If you use assertions (Java assertions, not the JUnit ones) in your test,
+ it is important to enable them using the {{-ea}} or {{-enableassertions}} argument.
+ 
+ {{{
+     <!-- My Test -->
+     <java fork="yes" classname="org.apache.lenya.cms.mypackage.MyTest">
+       <jvmarg value="-enableassertions"/>
+ 
+       <!--
+       Lenya installation directory.
+       This becomes the "pathToSomewhere" parameter.
+       -->
+       <arg value="${install.dir}"/> 
+ 
+       <classpath refid="classpath"/>
+       <classpath>
+         <pathelement location="${build.test}" />
+         <pathelement path="${build.root}/lenya/webapp/WEB-INF/classes" />
+         <fileset dir="${build.root}/lenya/webapp/WEB-INF/lib">
+           <include name="ant**.jar"/>
+         </fileset>
+       </classpath>
+     </java>
+ }}}
+ 
+ 



Mime
View raw message