From: Steve C. <sch...@gm...> - 2012-07-22 10:04:39
|
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 |