From: Jake C. <jak...@ga...> - 2009-04-08 15:17:59
|
The order that shutdown hooks are run is not specified by the API and is therefor effectively non-deterministic. Try calling net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData() explicitly at the end of your hook. If Cobertura's hook has already run, this should merge new counts that occurred in the interim into the coverage it would have just saved. -Jake Cobb On Wed, Apr 8, 2009 at 10:02 AM, <dun...@bt...> wrote: > My code coverage reports look great but seem not to include activity > called from a shutdown hook even though I know that activity has taken > place. > > Is that because Cobertura uses a shutdown hook to do its reporting and > the two are racing ? How can I make sure my shutdown hook fully > completes before Cobertura starts producing its report ? > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |