From: John W. L. <Joh...@sa...> - 2012-07-27 15:33:53
|
The instrumentation produces a cobertura.ser file. That same file should be used during your testing. One way of doing this is to copy the cobertura.ser file to the same location where your application produces the cobertura.ser file. From: *** From Sakthivel Kumar*** [mailto:nsa...@gm...] Sent: Wednesday, July 25, 2012 6:50 PM To: cob...@li... Subject: [Cobertura-devel] My percentage code coverage as 100%. Not sure why cobertura.ser file is not properly created and this file size is very small. Hello cobertura Group. Good evening. When i tried to generate code coverage using Cobertura tool, i see my percentage code coverage as 100% in my report. Before running my tests, i delete the existing cobertura.ser file and after running test each time, i can see a latest cobertura.ser file is getting generated. The cobertura.ser file generated is small in size less than 200 KB. And i am using this latest cobertura.ser file to generate coverage report. I did not know what is causing to give 100% code coverage report. But i expect to see the size of cobertura.ser file generated should be bigger. Below is the steps how i did my code coverage. a) Instrumented my EAR files and deployed to server b) Accessed my application in the server c) latest cobertura.ser file got generated. 4) Picked up the latest cobertura.ser file and used in my report coverage build to generate reports. In the reports directory, when i checked the index.html i can see 100% code coverage. Is there any other steps i am missing.? Please take a look and help me. I appreciate your help. Thanks Sakthivel nsa...@gm...<mailto:nsa...@gm...> |