From: Mark D. <Mar...@sa...> - 2005-07-25 20:04:20
|
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 ________________________________ 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 |
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 |
From: Grzegorz L. <ha...@gm...> - 2005-07-26 08:24:18
|
Try to put cobertura.ser created after classes instrumentation into c:\worker\, so that instead of creating a new file Cobertura will add information to file created during instrumentation. Grzegorz On 7/25/05, li...@sd... <li...@sd...> wrote: > =20 > Thanks Mark,=20 > =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 a= ll > 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 m= ust > 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 wha= t > should I do?=20 > =20 > Also, I found one of the package of my source code is missing in the repo= rt, > any idea?=20 > =20 > Li > =20 > =20 > =20 > -----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 cobertu= ra >=20 > =20 > It pretty much sounds like you're doing everything correctly, I'm not sur= e > 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 > =20 > -Mark > =20 > =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 >=20 > =20 > =20 >=20 > Hi All,=20 >=20 > I'm wondering if I can generate the report for J2EE application, for my c= ase > Web Service app using Apache Axis 1.2. The following is what I did do far= :=20 >=20 > 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 > 5: Run Unit test cases against the Web service application=20 > 6: Shut down the JVM=20 >=20 > But I did not get the cobertura.ser file to generate the report. Any idea= ?=20 >=20 > Thanks in advance=20 >=20 > Li=20 > |