From: Jake C. <jak...@ga...> - 2010-06-29 21:32:33
|
I submitted a patch for this against 1.9.1 but it was not accepted: http://sourceforge.net/tracker/?func=detail&aid=2581839&group_id=130558&atid=720017 Since then I've maintained my own fork with additional bug fixes because a tool I work on uses this information. The patch is admittedly incomplete for general use because it does not update the reporting functionality. I'm considering revising my approach due to some limitations with getting listeners attached in some contexts (e.g. Maven) and re-implementing against the current version. I'd appreciate some feedback from the community. How much interest is there in this functionality making it into the mainline? What is the likelihood that it would be seriously considered for inclusion? What conditions would affect this? For example, if I were to provide the baseline implementation for tracking per-test data but not the reporting updates to display it, would that be automatic rejection or could the reporting part be updated after acceptance? -Jake On Tue, Jun 29, 2010 at 4:37 PM, John W. Lewis <Joh...@sa...> wrote: > > That is an interesting idea. > > Wouldn't you have to flush the data using saveGlobalProjectData() as > described in the FAQ before saving the ser file? > > It seems you also may want to keep a copy of the original ser file produced > by the instrumentation and have the cobertura.ser file reset back to the > original content after saving it. > > John > > > -----Original Message----- > From: Bennett, Jeffrey [mailto:JJB...@On...] > Sent: Tuesday, June 29, 2010 4:31 PM > To: John W. Lewis; unn...@ac...; > cob...@li... > Subject: RE: [Cobertura-devel] Cobertura Track the Junit that covers the > code > > In setUp() or tearDown(), you could copy the .SER file off to a unique > name. That would give you a .SER file per test which you could either > look at individually for really granular stuff, or aggregate to yield > coverage across the entire suite. > > -----Original Message----- > From: John W. Lewis [mailto:Joh...@sa...] > Sent: Tuesday, June 29, 2010 4:25 PM > To: unn...@ac...; cob...@li... > Subject: Re: [Cobertura-devel] Cobertura Track the Junit that covers the > code > > > Other than running the tests one by one - not really. > > -----Original Message----- > From: unn...@ac... > [mailto:unn...@ac...] > Sent: Monday, June 28, 2010 8:20 AM > To: cob...@li... > Subject: [Cobertura-devel] Cobertura Track the Junit that covers the > code > > Hi, > I downloaded cobertura-1.9.4.1. > Generated reports for my code base. > However I am unable to track which junit test has caused the code to > be marked as covered. > Any way to know which junit is covering which code? > > > Regards, > Unni Louis > Phone: +91-98451-57088 > AIM: UnniLS > > > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete > the original. Any other use of the email by you is prohibited. > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by Sprint What will you do first with > EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by Sprint What will you do first with > EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |