Thank you for your response Vincent! I'm sorry for not responding
sooner...this is my first time using a email-user-list-thingy, and I
was having some trouble. I wanted to post what I did...
<junit printsummary="yes">
<classpath>
....
</classpath>
<test name="my.path.MyClassBeanTest" haltonfailure="no" outfile="result">
<formatter type="plain"/>
</test>
</junit>
This is what I was trying to do, I think. My problem was that cactus
wasn't on the path and i didn't have a cactus.propertie file I don't
think I need to use the cactus or runservertests right now. Thank you
very much for your help! Thanks for Cactus and Cargo too...
On Tue, 8 Mar 2005 08:36:30 +0100, Vincent Massol <[EMAIL PROTECTED]> wrote:
> Hi Joel,
>
> > -----Original Message-----
> > From: joel collins [mailto:[EMAIL PROTECTED]
> > Sent: lundi 7 mars 2005 17:38
> > To: [email protected]
> > Subject: Question regarding Cactus Ant tag, Ant integration in general
> >
> > Hello,
> >
> > First of all, thank you Vincent (and anyone else) for all your hard
> > work on Cactus (and Cargo). I had a question that hopefully someone
> > may help me with. I have gotten my tests to work correctly, so when I
> > type into a browser:
> >
> > http://127.0.0.1:7001/webtest/ServletTestRunner?suite=my.package.MyTesetCl
> > ass
> >
> > I get the results of my tests. Great! What I am now trying to do is
> > put my tests into ant, so I can type ant test and I will receive a
> > response if my tests passed or failed. The problem is, I don' t
> > really want to be starting and stopping a server each time (as my
> > server install is local and always running).
>
> Yeah, this is a use that could be better supported in Cactus and we plan to
> support it once we make the migration to Cargo (we also need to finish the
> hot deployment support in Cargo which has already been started).
>
> > It is my understanding
> > that Cactus ant tag starts and stops the server for you, and when you
> > dont include the containerset tag, it thinks you are running the tests
> > "locally". Is there a way to run the test by itself? (By using the
> > junit tag or something?)
>
> You have several options:
> - using the <runservertests> task
> (http://jakarta.apache.org/cactus/integration/ant/task_runservertests.html).
> That will give you all the control over the container
> - using the <cactus> task using the <generic> container
> (http://jakarta.apache.org/cactus/integration/ant/task_cactus.html#generic).
> You will benefit from all the feature of the <cactus> task but it's up to
> you to start/stop/configure your container
>
> > I am having trouble understanding how ant
> > knows where to go to run the cactus tests, because, for example, how
> > does ant know the context root? (webtest in my case)
>
> It computes is from the WAR file name and it also auto-discover JBoss's
> jboss-web.xml and Tomcat's context.xml files in which you can set the
> context root.
>
> >
> > I hope these questions aren't too confusing. I just started with J2EE
> > and i'm not sure I have a good grasp on much yet.
> >
>
> Hope it helps,
> -Vincent
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]