From: Carney, M. S. <mc...@pt...> - 2011-10-01 15:42:45
|
I did end up writing some code. I added includeClasses and excludeClasses to the merge operation of Cobertura. The xml approach doesn’t work well on a large, distributed project. Using coverage files from other testing groups, I want to be able to remove classes not relevant to my area and combine that result with coverage from local testing. The change above achieves that by allowing arbitrary merging and splitting. The .ser file becomes the lingua franca between groups that can be exchanged and still manipulated. I am interested in submitting the code. Pointers on the process would be appreciated. Mike Carney From: jak...@gm... [mailto:jak...@gm...] On Behalf Of Jake Cobb Sent: Tuesday, August 16, 2011 1:49 PM To: Carney, Michael S. Cc: cob...@li... Subject: Re: [Cobertura-devel] Splitting .ser files Mike, I don't think you'll be able to do that without writing some code, although someone please correct me if this is not the case. The .ser files are serialized Java objects that would need to be loaded/deserialized, stripped of the package coverage counts you don't want and reserialized back into .ser files for processing by the reporting functionality. If you can work with the XML reports, maybe you can generate those and strip them using some simpler text processing? -Jake Cobb 2011/8/16 Carney, Michael S. <mc...@pt...> I have an .ser file generated for an entire product. I would like to be able to pull out of that .ser a subset of coverage based on package. I intend to combine that subset with other separately generated .ser files. Sort of a reverse merge. Any suggestions? Thanks Mike Carney ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |