Re: What do you think of my horrible testing strategy

2006-05-25 Thread Henri Dupre

Ah that is funny! We have a similar strategy except we don't have any fake
service implementation or lower level testing... That is too much work and
too much code to write all the jmock stuff. We had some for T3 but we are
slowly dropping them. We only have jmock for several small things.
We found out that building the real war to tomcat and running the htmlunit
tests is very usefull. Having the war deployed helped to prevent several
deployment bugs to go in production... And I am more confident by testing
the real war... There are many things that can go wrong even in the building
process.


Thanks,

Henri.


What do you think of my horrible testing strategy

2006-05-24 Thread Rob Dennett
I am not sure if a consensus has been reached as to what constitutes the best 
practice for testing a Tapestry app, so I came up with this little strategy 
that is rather inelegant and I would greatly appreciate any improvements that 
you would care to offer.

 

Step one:  Have ant build a fake war using a dummy hivemodule.xml that 
instantiates fake service implementations.

 

Step two:  Have ant launch jetty (I picked jetty because I am under the 
impression that my testing cycle will be faster than if I use Tomcat here)

 

Step three:  Have ant execute HtmlUnit unit tests which test the rendered 
output from my pages.

 

Step four:  Have ant build the real war and deploy it to Tomcat.

 

Step five: Rerun the HtmlUnit tests against the fully integrated application.

 

How dumb is this plan and how would you improve upon it?

 

Thanks for your help,

Rob


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 5/23/2006