From: <li...@sd...> - 2005-07-25 21:59:50
|
Thanks Mark, =20 After half day struggling. I finally get the cobertura.ser under the = directory I specified. The problem was the Ant task I have did not copy = all the instrumented classed properly. Now the question became when I = try to generate the report, I got all the class coverage as N/A, I think = there must be something to do with the ser file generate when I run the = instrument task, so I tried to merge those file, but it still does not = work. I check the mailing list, I seem like for v 1.4, the merge do not = working. so what should I do? =20 Also, I found one of the package of my source code is missing in the = report, any idea? =20 Li -----Original Message----- From: Mark Doliner [mailto:Mar...@sa...]=20 Sent: 2005-07-25 4:04 PM To: Geng, Li [NC]; cob...@li... Subject: RE: [Cobertura-devel] Coverage Report for J2EE App using = cobertura =09 =09 It pretty much sounds like you're doing everything correctly, I'm not = sure why it doesn't work. In step 6, you shut down the Servlet = container JVM and not the one running the unit test cases, right? =20 -Mark _____ =20 From: cob...@li... = [mailto:cob...@li...] On Behalf Of = li...@sd... Sent: Monday, July 25, 2005 9:27 AM To: cob...@li... Subject: [Cobertura-devel] Coverage Report for J2EE App using = cobertura Importance: High =09 =09 Hi All,=20 I'm wondering if I can generate the report for J2EE application, for = my case Web Service app using Apache Axis 1.2. The following is what I = did do far: 1: Instrumented all the class file to be packaged=20 2: Package the classes with dependencies as a EAR file=20 3: Deploy the EAR file=20 4: Start the Servlet container JVM with the following parameter:=20 -Dnet.sourceforge.cobertura.datafile=3DC:\worker\cobertura.ser=20 5: Run Unit test cases against the Web service application=20 6: Shut down the JVM=20 But I did not get the cobertura.ser file to generate the report. Any = idea?=20 Thanks in advance=20 Li=20 |