From: Mark D. <Mar...@sa...> - 2005-05-17 20:26:50
|
Because of the way Cobertura works, it only writes the cobertura.ser = datafile when its JVM exits. Are you exiting Weblogic AFTER your = HttpUnit tests are run and BEFORE you call cobertura-report? -Mark > -----Original Message----- > From: cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of Harish Prabhakara > Sent: Tuesday, May 17, 2005 6:34 AM > To: cob...@li... > Cc: Iyer, Tejas; Satyadarshi Mishra; Bothra, Naveen > Subject: [Cobertura-devel] improper codecoverage report >=20 > hi, >=20 > We are trying to do a code coverage analysis for an=20 > application deployed > under Weblogic 8.1 server. The application is been tested > using Junit as well as HttpUnit Test Cases. While doing the=20 > code coverage > analysis we found that the code coverage is been > reported for those classes which has been called through Junit. Code > coverage for those Classes which are run under Weblogic=20 > environment or under HttpUnit environment is not shown as=20 > covered. For E.g. > Let us say that we have got a Delegate class > which calls a service. This service is an EJB which is been=20 > deployed in the > Weblogic server. This Ejb in turns calls some VOAssembler=20 > classes and in turn calls the DAO classes.=20 >=20 >=20 > The test case calls the SiteDelegate which internally finds=20 > the service and > executes the service.=20 >=20 > The build.xml does exactly as mentioned in the documentation. >=20 > set the classpath for the cobertura.jar. > compile the java files. > Create instrumented classes over the compilation classes > set the classpath for the instrumented classes > run the testcase > create the report. >=20 > On analysis of the report, we could find code coverage only=20 > for delegate > class and there no coverage is been reported for other classes such > as EJB, VOAssembler and DAO.=20 >=20 >=20 > Kindly can you help in resolving this problem. >=20 > Thanks and Regards > Harish >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 |