What Ho! Ah! To live with a What Ho on my lips and a Gentleman's Gentleman… {sigh}… Such is life…

1Jun/082

How To: Using Apache Cactus, with EMMA on Jakarta Tomcat 6.x

Last week I had to put together a presentation on in-container unit testing and code coverage. Our development team at work is using JUnit for all their unit testing and have a good daily build system running. However all the JUnit code is run via Apache ANT outside the application server (OC4J) and hence does not tell us much. What is required is a framework that allows us to test in-container. We were also interested in code coverage. The daily build system executes a set of WinRunner RTs after each build and we want to know how much of the code is being tested. I took it upon myself to put together a small demo and presentation for the Director and VP. I wanted to showcase Apache Cactus as well as EMMA. Each by itself and also together to demonstrate how EMMA could be used to generate coverage reports from the Cactus tests as well as from other UI tests like the WinRunner scripts we regularly run. I wrote up the work I did in a How To article on my web site. In this article I show how to setup a web application under Tomcat 6.0 that uses Cactus for in-container unit testing as well as EMMA for code coverage reporting.

Read more...

Update: June 2, 2008, 2.30 a.m.  IST

My web site is currently under maintenance and will not be available till late tomorrow evening (Monday, June 2, 2008). I have removed the links to the article till the web site is up again.

– Gautam

   
QR Code Business Card