Hi Chris Thanks for the quick reply. the info on junitreport was what I was missing.
I got everything working except for one test case Inside my test.war file I have 4 classes com.acme.InitServlet <-- this servlet is loaded on container startup to initialize MyStaticFactory com.acme.MyStaticFactory <--- has some resources that is initialized by InitServlet com.acme.MyClass <-- this class uses resources inside MyStaticFactory com.acme.junittest.MyClassTestStub <-- the JUnit test for MyClass I've manually started my app server and saw that InitServlet called by JBoss container - browse to http://localhost:8080/test/ServletTestRunner?xsl=cactus-report.xsl&suite=com.acme.junit.MyClassTestStub - Got the result back saying all test cases passed If I run it using <cactus> ant task, i am seeing that the same test case fails because MyStaticFactory is not initialized..?? Doesn't the RedirectorProxy create a class in the loader context of the test.war web app? Thanks. > -----Original Message----- > From: Christopher Lenz [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 14, 2003 1:10 PM > To: Cactus Users List > Subject: Re: ant task <cactus> and HTML output ?? HOW TO? > > > Well, you should have read this: > > http://jakarta.apache.org/cactus/integration/ant/ > > and also this: > > > http://jakarta.apache.org/cactus/integration/ant/howto_ant_cactus.html > > In addition, check out the sample-servlet application that comes with > the Cactus distribution. The build transforms the test > results to HTML > pages using Ant's <junitreport> task. > > If you have any more specific questions, please post them. > > -- > Christopher Lenz > /=/ cmlenz at gmx.de > > Am 14.12.2003 um 21:56 schrieb Ian Huynh: > > > I've been able to use ServletTestRunner?xsl=cactus-report.xsl > > to return the XML results with and embedded xsl in it. > > > > If i am running from <cactus> ant task, how would I > achieve the same > > effect ? > > > > Thanks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
