From: Eyal E. <ee...@re...> - 2012-07-23 06:17:28
|
----- Original Message ----- > From: "Florian Zschocke" <Flo...@cy...> > To: cob...@li... > Sent: Sunday, July 22, 2012 11:36:01 PM > Subject: Re: [Cobertura-devel] Can I deploy cobertura on a installed-by-rpm java project > > Plus, if you run the report only on the created cobertua.ser file, > you will get a code coverage of 100%. That is because only > information for the touched lines and branches will be in the file. > To get correct code coverage you need the information from the rest > of the sources, too. So you will need to merge the cobertura.ser > file created on your deployment server with the cobertura.ser file > created during instrumentation of the code. > > Be aware that Cobertura seems to have a bug when merging > cobertura.ser files. The order in which you merge the files appears > to matter. This is interesting, can you please elaborate? i'm running multiple testing jobs (in devel more, i.e i compile the sources), each job creates a cobertura.ser file. once all jobs finish, i run a merge job that merges all cobertura.ser files. how do i know what is the correct order or merge to use in order to get the right results? Eyal. > > ________________________________________ > From: Steve Christou [sch...@gm...] > Sent: Sunday, July 22, 2012 12:04 PM > > For cobertura, when you instrument code, you are instrumenting the > byte code, this is the compiled source code, so the .class files. You > are able to instrument without the source code, although it will not > provide you with much information, because you would need to get the > source code somehow to view the results from the code coverage. > > To cover your Scenario, yes it is possible to do everything you > mentioned. First instrument the .class files and package it all up. > Then hand the packaged items to your live server(or deployment > server). Once you believe you've gathered enough data, a > cobertura.ser > file will be created when the jvm shuts down. This is the most > important file as it contains all the coverage results. Grab this > file > and bring back to your development environment and run the > cobertura-report target with the source code and you should see code > coverage. > > On Sun, Jul 22, 2012 at 4:53 AM, Rami Vaknin <rv...@re...> > wrote: > > Hi, > > > > I would like to use code coverage tool on a java project "build" > > environment which installed from rpm. I've heard from a colleague > > that > > cobertura can fit and that he uses cobertura on a development > > environment of the same java project where the source code is > > available > > and the build is done manually using maven. > > > > Can I run cobertura on a build environment without source code? Can > > I > > run cobertura on a "build" environement while the source code is > > available but the jars are deployed on a different location than > > they > > are deploy when building them manually? > > > > -- > > > > Thanks, > > > > Rami Vaknin, QE @ Red Hat, TLV, IL. > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > > Discussions > > will include endpoint security, mobile security and the latest in > > malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest in > malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest in > malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |