From: <dh...@le...> - 2007-02-12 15:04:52
|
We're actually still using Maven 1.x. I updated the Cobertura plugin to instrument the war, but it wasn't very complicated. In light of this, let me know if I can still help... Now, if I can only get Tomcat to persist the coverage info...! cheers, David "Andreas Guther" <Andreas.Guther@m arkettools.com> To <dh...@le...>, "John W. Lewis" 02/11/2007 01:39 <Joh...@sa...> PM cc <cob...@li...urceforge. net> Subject RE: [Cobertura-devel] creating instrumented war David, Could you please give a description on how you instrumented your build for Tomcat with Maven 2? I am assuming you are using Maven 2. Creating and using an instrumented war file with Tomcat is something we are struggling for a while. It would be a great help to use and probably other people on the mailing list to find a complete description on how to get a successful instrumented build and use it with Tomcat. Points of interest: Maven Cobertura version; special configuration in your pom file; sequence of mvn goals, etc. Best, Andreas -----Original Message----- From: cob...@li... [mailto:cob...@li...] On Behalf Of dh...@le... Sent: Friday, February 09, 2007 12:59 PM To: John W. Lewis Cc: cob...@li... Subject: Re: [Cobertura-devel] creating instrumented war Thanks! That works - I'd overlooked it. However, I am running into an issue with Tomcat not updating the cobertura.ser when it shuts down. We install it as a service, and when the service is stopped, nothing gets updated. Same thing if I start it from the command line using tomcat5.exe. However, if I copy the other files across in the bin directory and start it using "startup.bat", it does update cobertura.ser. We'd like to run our acceptance tests on as close as install as possible, so we'd like to avoid the last option if possible. Does anyone know why the service doesn't update the ser file? cheers, David x54680 "John W. Lewis" <JohnW.Lewis@sas. com> To <dh...@le...>, 02/09/2007 10:52 <cob...@li...urceforge. AM net> cc Subject RE: [Cobertura-devel] creating instrumented war Cobertura 1.8 has support for instrumenting a war file. Try creating the war, then instrumenting it. I'm not sure this has been tried with maven though. John -----Original Message----- From: cob...@li... [mailto:cob...@li...] On Behalf Of dh...@le... Sent: Friday, February 09, 2007 10:43 AM To: cob...@li... Subject: [Cobertura-devel] creating instrumented war Hi, I'm trying to create an instrumented war file that I can deploy and run tests against. I'm using maven, so I am calling the cobertura:on goal in the plugin. However, this only instruments the non-interface classes, and so when I jar up this directory, it doesn't contain any interfaces. I'm trying to avoid having to copy the instrumented files over the non-instrumented ones to get all the files I need. Is there a way to get cobertura to include the interface classes (I understand they're not instrumented, but I would have thought it would make sense to take a set of java classes and produce a copy of those classes where all the classes exist and the non-interface classes are instrumented)? cheers, David ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |