Hi, I never used CACTUS therefore my reply could be useless but I got CLOVER working on Maven B7 for an ENHYDRA application (yesterday late night)
CLOVER actually modifies the source code, does some magic I do not understand with a Compiler Adapter and creates instrumented class files. That's fine for a plain vanilla coverage test. For a servlet application you have to create instrumented JARs and deploy them, i.e. you need a complete rebuild with CLOVER turned on. With the CLOVER plugin I had the following problems +) no support for creating and deploying instrumented JARs +) in this scenario Clover MUST use a central coverage database (e.g. /temp/clover) for ALL instrumented JARs +) the default setting with flushing the coverage data was pretty bad - it tells CLOVER to write back the coverage data every 10 MILLISECEONDS. There is a "directed" flush policy to be used which is ignored since the data are written back using a shutdown hook. +) I successfully created a coverage report with a JUNIT test sitting on a framework consisting of 50 JARs and one driven by Canoo Webtest. IMHO you are plainly using un-instrumented JARs for your servlet application I changed the CLOVER plugin (CVS HEAD 16.03.2003) - I finish the work on it next Tuesday at my customer's site and contribute the changes on Wednesday Cheers, Siegfried Goeschl On 19 Feb 2003 at 17:53, Green Cap wrote: > Hi. > This is the following code that I have in my maven.xml file. > > <?xml version="1.0"?> > <project default="build-site"> > <goal name="build-site"> > <delete dir="target"/> > <attainGoal name="war:war"/> > <attainGoal name="clover:on"/> > <attainGoal name="cactus:test"/> > <attainGoal name="clover:html-report"/> > <attainGoal name="site:generate"/> > </goal> > </project> > > In my project.properties file I have the following settings > > maven.junit.fork=true > > Now from the command prompt I type in "maven build-site" and > everything gets executed. When I go to the site generated by Maven, I > find that there is a new link called "Clover Test Coverage" under > "Project Reports" . When I click on this link, I get directed to the > "Clover Coverage Report". On the upper left hand frame, when I click > on a package name under "All Packages", a broken link is displayed on > the lower left hand frame. Another problem that I am having is with > servlets. The problem is that all the classes that are servlets show a > full red bar which is indicating that I don't have any test cases for > those servlets, but I actually do have test cases for those servlet, > and I even have a generated report on those servlets that have been > tested by Cactus under "Unit Test". The classes that are not servlets, > are showing me accurate test coverage with a percentage of green bar. > > Kindly instruct me where I am going wrong. > > Thanks. > > > >It was working in b7. I have no clue for b8 but I would venture it is > >currently not working anymore. We'll need to fix that too... > > > >The solution was simply to run the clover plugin before calling the > >cactus plugin. > > > >-Vincent > > > > > _________________________________________________________________ Add > photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > Siegfried Goeschl CTO ================================= IT20one GmbH mail: [EMAIL PROTECTED] phone: +43-1-9900046 fax: +43-1-52 37 888 www.it20one.at --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
