From: SourceForge.net <no...@so...> - 2011-12-13 11:37:26
|
Bugs item #3458953, was opened at 2011-12-13 03:34 Message generated for change (Settings changed) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3458953&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: jorge hidalgo () Assigned to: Nobody/Anonymous (nobody) >Summary: 0% branch coverage due to wrong number of possible branches Initial Comment: When measuring code coverage in the Spring 3 Petclinic sample application I’ve found a totally unexpected 0% branch coverage metric. Reviewing the results in detail, it seems that on some ‘if’ constructs Cobertura has calculated 131072 (a -1 converted to unsigned??) possible branches and this has pulled down the branch metric to the minimum. This is happening when using Cobertura Maven plug-in only, with Maven site and with Sonar 2.12. Attached an excerpt of the generated cobertura.xml file. Complete file is 24 MB but I share it if needed. Petclinic has been downloaded from trunk in SpringSource spring-samples Subversion repo here: https://src.springframework.org/svn/spring-samples/petclinic/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3458953&group_id=130558 |