You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(4) |
Jul
(12) |
Aug
(2) |
Sep
(4) |
Oct
(16) |
Nov
(2) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(2) |
Feb
(7) |
Mar
(3) |
Apr
(3) |
May
(5) |
Jun
(10) |
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(6) |
Nov
(2) |
Dec
(3) |
2009 |
Jan
(4) |
Feb
(1) |
Mar
(4) |
Apr
(3) |
May
(16) |
Jun
(15) |
Jul
(15) |
Aug
(2) |
Sep
(4) |
Oct
(4) |
Nov
(1) |
Dec
(6) |
2010 |
Jan
(4) |
Feb
(10) |
Mar
(4) |
Apr
(3) |
May
(5) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
(8) |
Nov
(7) |
Dec
(11) |
2011 |
Jan
(9) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(7) |
Jun
(5) |
Jul
(7) |
Aug
(3) |
Sep
(1) |
Oct
(2) |
Nov
(12) |
Dec
(5) |
2012 |
Jan
(2) |
Feb
(5) |
Mar
(29) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
|
2013 |
Jan
(4) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jagadishwar, S. <sou...@sa...> - 2014-04-29 12:00:08
|
Hi, I am using Corbetura-2.0.3 with java 1.7 and I am trying to instrument the classes in our build system via command line. Stuck at instrumenting classes. Please assist. Here is the command: ./cobertura-instrument.sh --basedir /ariba/9r2_sourcing/roots-S49r2/install/classes/ariba.app.approvable.zip --destination /ariba/9r2_sourcing/Instrument -auxClasspath /ariba/9r2_sourcing/roots-S49r2/install/classes Wherein, /ariba/9r2_sourcing/roots-S49r2/install/classes/ariba.app.approvable.zip - zip containing classes which I would like to instrument /ariba/9r2_sourcing/Instrument - Folder to save instrumented classes /ariba/9r2_sourcing/roots-S49r2/install/classes - path where all other reference classes are present. Output: -bash-4.1$ ./cobertura-instrument.sh --basedir /ariba/9r2_sourcing/roots-S49r2/install/classes/ariba.app.approvable.zip --destination /ariba/9r2_sourcing/Instrument -auxClasspath /ariba/9r2_sourcing/roots-S49r2/install/classes Cobertura 2.0.3 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Apr 29, 2014 4:53:27 AM net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler loadCoverageData INFO: Cobertura: Loaded information on 0 classes. Apr 29, 2014 4:53:27 AM net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler saveCoverageData INFO: Cobertura: Saved information on 0 classes. Also tried with : * 'archivesdepth' parameter as well; it gives the same above error. * I have updated the 'cobertura-instrument.sh' file with the right versions of jars present in Cobertura installed location. Thanks, Soumya |
From: Holmes, D. <Dan...@ne...> - 2013-07-18 18:51:41
|
[cobertura:instrument] WARN warn, Problems instrumenting archive entry: package/MyClass.class [cobertura:instrument] java.lang.IncompatibleClassChangeError: net/sourceforge/cobertura/instrument/pass1/DetectIgnoredCodeClassVisitor [cobertura:instrument] at net.sourceforge.cobertura.instrument.CoberturaInstrumenter.instrumentClass(CoberturaInstrumenter.java:149) [cobertura:instrument] at net.sourceforge.cobertura.instrument.Main.addInstrumentationToArchive(Main.java:143) [cobertura:instrument] at net.sourceforge.cobertura.instrument.Main.addInstrumentationToArchive(Main.java:242) [cobertura:instrument] at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:371) [cobertura:instrument] at net.sourceforge.cobertura.instrument.Main.main(Main.java:395) I'm running exact same build as previous, just having swapped 1.9.4.1 for 2.0.2 of cobertura javac -version javac 1.6.0_43 Sounds from what I could find about this error it means the class resulting from the instrumentation is not java 1.6 compatible? Is there a flag I need to add to the instrument task or is this a cobertura bug. Daniel |
From: SourceForge.net <no...@so...> - 2013-03-22 16:03:31
|
Bugs item #3608827, was opened at 2013-03-22 09:03 Message generated for change (Tracker Item Submitted) made by sindrit You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3608827&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: Sindri Traustason (sindrit) Assigned to: Nobody/Anonymous (nobody) Summary: Instrumented enum that uses @Nonnull breaks test compilation Initial Comment: The java compiler fails to compile tests that depend on enums that use @javax.annotations.Nonnull. The cobertura instrumented version of the class causes compilation errors like the following: "Compilation failure [line number reference to test class] error: cannot access [name of enum]" My original question about this issue on http://stackoverflow.com/questions/15547673 explains the details of how I found this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3608827&group_id=130558 |
From: SourceForge.net <no...@so...> - 2013-02-20 08:27:24
|
Bugs item #3605388, was opened at 2013-02-20 00:27 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3605388&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: cleverpig () Assigned to: Nobody/Anonymous (nobody) Summary: JavaNCSS got an error while parsing the java file Initial Comment: more detail: http://jira.codehaus.org/browse/MCOBERTURA-161 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3605388&group_id=130558 |
From: SourceForge.net <no...@so...> - 2013-01-07 14:04:37
|
Bugs item #2957940, was opened at 2010-02-24 04:31 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&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: Closed Resolution: Rejected Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: John Lewis (lewijw) Summary: The bug of the percentage branches covered for each class? Initial Comment: Example Pattern 1 if (a || b) → OK ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= Pattern 2 if (a && b) → NG? The expected pattern is ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= But ============================= A. branch covered (2/4) 1. a = true b= true 2. a = false b = false 3. a = true b= false 4. a = false b = true ============================= Isn't the pattern of 3 and 4 covering of the condition? ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 06:04 Message: see also this two bug reports http://jira.codehaus.org/browse/SONAR-1391 http://jira.codehaus.org/browse/SONAR-1211 actually we have problem with switch public int testSwitch( int n ) { switch ( n ) { case 0: return 1; case 1: return 100; case 2: return 10000; case 4: return 123456; default: throw new IllegalArgumentException(); } } cobertura shows coverage 83% (5/6) probably because java generates case 3: ... in bytecode (some optimization) and calls default, but cobertura have problem with that even when 3 is added to test. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 05:04 Message: sorry, the code should be String s = ... if ( s != null && new Boolean(s) ) { ... } ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 05:03 Message: No, in fact there are 3 branches to cover a && b condition a = true b = false a = true b = true a = false Typicall usage is for example String s = ... if ( b != null && new Boolean(d) ) { ... } It's not possible to cover all 4 branches. It's similar to || condition. ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2010-02-24 13:45 Message: There are two conditions in the if statement: is "a" true and is "b" true? To cover the first one, tests have to set "a" to true and "a" to false. To cover the second condition, tests have to set "b" to true and "b" to false (of course "a" will need to be true in both cases). So, there are 4 permutations that have to be covered. Please clarify if I have not understood your question. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&group_id=130558 |
From: SourceForge.net <no...@so...> - 2013-01-07 13:04:35
|
Bugs item #2957940, was opened at 2010-02-24 04:31 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&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: Closed Resolution: Rejected Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: John Lewis (lewijw) Summary: The bug of the percentage branches covered for each class? Initial Comment: Example Pattern 1 if (a || b) → OK ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= Pattern 2 if (a && b) → NG? The expected pattern is ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= But ============================= A. branch covered (2/4) 1. a = true b= true 2. a = false b = false 3. a = true b= false 4. a = false b = true ============================= Isn't the pattern of 3 and 4 covering of the condition? ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 05:04 Message: sorry, the code should be String s = ... if ( s != null && new Boolean(s) ) { ... } ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 05:03 Message: No, in fact there are 3 branches to cover a && b condition a = true b = false a = true b = true a = false Typicall usage is for example String s = ... if ( b != null && new Boolean(d) ) { ... } It's not possible to cover all 4 branches. It's similar to || condition. ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2010-02-24 13:45 Message: There are two conditions in the if statement: is "a" true and is "b" true? To cover the first one, tests have to set "a" to true and "a" to false. To cover the second condition, tests have to set "b" to true and "b" to false (of course "a" will need to be true in both cases). So, there are 4 permutations that have to be covered. Please clarify if I have not understood your question. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&group_id=130558 |
From: SourceForge.net <no...@so...> - 2013-01-07 13:03:54
|
Bugs item #2957940, was opened at 2010-02-24 04:31 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&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: Closed Resolution: Rejected Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: John Lewis (lewijw) Summary: The bug of the percentage branches covered for each class? Initial Comment: Example Pattern 1 if (a || b) → OK ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= Pattern 2 if (a && b) → NG? The expected pattern is ============================= A. branch covered (2/2) 1. a = true b= true 2. a = false b = false ============================= But ============================= A. branch covered (2/4) 1. a = true b= true 2. a = false b = false 3. a = true b= false 4. a = false b = true ============================= Isn't the pattern of 3 and 4 covering of the condition? ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2013-01-07 05:03 Message: No, in fact there are 3 branches to cover a && b condition a = true b = false a = true b = true a = false Typicall usage is for example String s = ... if ( b != null && new Boolean(d) ) { ... } It's not possible to cover all 4 branches. It's similar to || condition. ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2010-02-24 13:45 Message: There are two conditions in the if statement: is "a" true and is "b" true? To cover the first one, tests have to set "a" to true and "a" to false. To cover the second condition, tests have to set "b" to true and "b" to false (of course "a" will need to be true in both cases). So, there are 4 permutations that have to be covered. Please clarify if I have not understood your question. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2957940&group_id=130558 |
From: SourceForge.net <no...@so...> - 2013-01-04 05:48:39
|
Bugs item #3599421, was opened at 2013-01-03 21:48 Message generated for change (Tracker Item Submitted) made by liyixing You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3599421&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: 李义星 (liyixing) Assigned to: Nobody/Anonymous (nobody) Summary: The About HasBeenInstrumented interface Initial Comment: 关于HasBeenInstrumented是一个接口的问题,如果需要覆盖,那么需要实现该接口。而问题就在这里。 如果一个spring mvc action @Controller public class MockAction { @Autowired private MockServiceI mockService; /** * * 描述:直接返回一个视图 * * @return * @author liyixing 2012-12-11 下午2:15:04 */ @RequestMapping("getView") @NoSuccessMessage public String getView(ModelMap modelMap, MockModel mockModel, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, HttpSession session, Integer integer) { return "action"; } } 并且存在aop,会拦截该action,并且,代理模式是jdk 代理。问题就大大的存在了。 The About HasBeenInstrumented is an interface problem, if you need coverage, you need to implement the interface. And the problem here. If a spring mvc action @ Controller public class MockAction { @ Autowired private MockServiceI mockService; / ** * * Description: Returns a view directly * * @ Return * @ Author liyixing 2012-12-11 afternoon 2:15:04 * / @ RequestMapping ("getView") @ NoSuccessMessage public String getView (ModelMap modelMap, MockModel mockModel, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, HttpSession session, Integer integer) { return "action"; } } And there aop, will block the action, and proxy mode jdk agent Problem exist. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3599421&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-11-27 22:25:09
|
Bugs item #3590496, was opened at 2012-11-27 14:25 Message generated for change (Tracker Item Submitted) made by philforge You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3590496&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: Phil (philforge) Assigned to: Nobody/Anonymous (nobody) Summary: not writing metadata on jboss shutdown Initial Comment: I have an application deployed on jboss 6.1. I have applied the recommended practice (from the cobertura faq) of setting the following property -Djboss.shutdown.forceHalt=false However, cobertura still does not write out the coverage metadata on shutdown. While debugging, I noticed the following exception was being encountered when cobertura's shutdown hook was executing. java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/ClassData at net.sourceforge.cobertura.coveragedata.ProjectData.getOrCreateClassData(ProjectData.java:99) at net.sourceforge.cobertura.coveragedata.TouchCollector.getClassFor(TouchCollector.java:218) at net.sourceforge.cobertura.coveragedata.TouchCollector.applyTouchesOnProjectData(TouchCollector.java:190) at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:267) at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: Class not found net.sourceforge.cobertura.coveragedata.ClassData at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:897) at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 6 more Caused by: java.lang.IllegalStateException: BaseClassLoader@5260acdc{vfs:///jboss/server/demo/conf/jboss-service.xml} classLoader is not connected to a domain (probably undeployed?) for class net.sourceforge.cobertura.coveragedata.ClassData at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:881) ... 9 more I also noticed the following hack in initialize()... // Hack for Tomcat - by saving project data right now we force loading // of classes involved in this process (like ObjectOutputStream) // so that it won't be necessary to load them on JVM shutdown if (System.getProperty("catalina.home") != null) { saveGlobalProjectData(); // Force the class loader to load some classes that are // required by our JVM shutdown hook. // TODO: Use ClassLoader.loadClass("whatever"); instead ClassData.class.toString(); CoverageData.class.toString(); CoverageDataContainer.class.toString(); FileLocker.class.toString(); HasBeenInstrumented.class.toString(); LineData.class.toString(); PackageData.class.toString(); SourceFileData.class.toString(); } If I set the catalina.home system property, then cobertura will properly write out the metadata on jboss shutdown. It would be nice if a less "hacky" fix was put in place. Perhaps the classes could always be loaded regardless of the catalina.home system property? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3590496&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-11-06 15:59:03
|
Bugs item #2998305, was opened at 2010-05-07 12:08 Message generated for change (Comment added) made by dma_k You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2998305&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: Accepted Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Low coverage reported on switch statement Initial Comment: The attached code gets an abysmal 2/62 conditional coverage reported by Cobertura 1.9.4.1. Rewriting the switch statement as an if statement gives a much better 34/34. ---------------------------------------------------------------------- Comment By: Dmitry Katsubo (dma_k) Date: 2012-11-06 07:59 Message: Looking forward for new release: buggy v1.9.4.1 dates back to Mar 2010. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: 7x0xmy <a href="http://rwrxmrpxilqv.com/">rwrxmrpxilqv</a>, [url=http://vcunzohlgthm.com/]vcunzohlgthm[/url], [link=http://sdplwbdnknmd.com/]sdplwbdnknmd[/link], http://jzdhdvximgrj.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:14 Message: kfyqHw <a href="http://eghrtmmcjzlw.com/">eghrtmmcjzlw</a>, [url=http://msomuxrmrosi.com/]msomuxrmrosi[/url], [link=http://exfzwmsfdcpy.com/]exfzwmsfdcpy[/link], http://myrxzsfipxoh.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-12 12:36 Message: 4M2sCZ <a href="http://orgbihkoegft.com/">orgbihkoegft</a>, [url=http://ciesfhhgluds.com/]ciesfhhgluds[/url], [link=http://ktnbcsreosim.com/]ktnbcsreosim[/link], http://ztfoilgkosue.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: wl6N5J <a href="http://zjmsmzvhgefq.com/">zjmsmzvhgefq</a>, [url=http://sphgodnuncwk.com/]sphgodnuncwk[/url], [link=http://jtwwsggbarfs.com/]jtwwsggbarfs[/link], http://guddvrnodrpp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:51 Message: EtT4kI <a href="http://mcccmjwrbzfv.com/">mcccmjwrbzfv</a>, [url=http://hgcodqniyulh.com/]hgcodqniyulh[/url], [link=http://xvsigcxwhgfl.com/]xvsigcxwhgfl[/link], http://vewqmdlqwfhd.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: BeuivM <a href="http://oyltywxasmdm.com/">oyltywxasmdm</a>, [url=http://ppawjitcozvj.com/]ppawjitcozvj[/url], [link=http://oucjpqmszkjj.com/]oucjpqmszkjj[/link], http://ewnhoqcjfqtt.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:50 Message: WXZKK2 <a href="http://bsazlmjkxxkk.com/">bsazlmjkxxkk</a>, [url=http://yppgydlnwyrm.com/]yppgydlnwyrm[/url], [link=http://dudlxmrjspax.com/]dudlxmrjspax[/link], http://mrtwlkorntgw.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:51 Message: This should be fixed in the next release. Please see the email I just sent to the Cobertura users: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2998305&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-09-29 20:27:56
|
Bugs item #3573077, was opened at 2012-09-29 13:27 Message generated for change (Tracker Item Submitted) made by tvaughan77 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3573077&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: Tom Vaughan (tvaughan77) Assigned to: Nobody/Anonymous (nobody) Summary: maven cobertura exceptions when upgrading to 2.5.2 Initial Comment: Environment: maven 2.2, java 1.6.0_33 Upgrading our maven-cobertura-plugin dependency from 2.3 to 2.5.2 results in every test failing with error: java.lang.NoSuchMethodError: net.sourceforge.cobertura.coveragedata.ProjectData.getGlobalProjectData()Lnet/sourceforge/cobertura/coveragedata/ProjectData The effective-pom of the artifact being compiled includes these relevant versions of dependencies: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.2</version> <dependencies> <dependency> <groupId>net.sourceforge.cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.9.3</version> <scope>compile</scope> <exclusions> <exclusion> <artifactId>commons-collections</artifactId> <groupId>commons-collections</groupId> </exclusion> </exclusions> </dependency> </dependencies> </plugin> And then my own explicitly defined commons-collection, just FYI: <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> </dependency> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3573077&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-09-07 19:58:22
|
Bugs item #3553264, was opened at 2012-08-01 11:10 Message generated for change (Comment added) made by gbonk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3553264&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: Fixed Priority: 5 Private: No Submitted By: gbonk (gbonk) Assigned to: Nobody/Anonymous (nobody) Summary: Error running cobertura in maven Initial Comment: I run the command .... mvn cobertura:cobertura And I get an exception with the cause being "Caused by: java.lang.NoClassDefFoundError: org/apache/maven/reporting/MavenReport" This is in Maven 3.0.4 ---------------------------------------------------------------------- >Comment By: gbonk (gbonk) Date: 2012-09-07 12:58 Message: figured out this was a corrupted Maven 2.0.8 pom. I found if I deleted my local repo and did non use the enterprise repository the artifacts that were downloaded were slightly different then what was in our repo and cobertura worked correctly. I removed the offending artifacts from our repo ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3553264&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-08-01 18:10:49
|
Bugs item #3553264, was opened at 2012-08-01 11:10 Message generated for change (Tracker Item Submitted) made by gbonk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3553264&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: gbonk (gbonk) Assigned to: Nobody/Anonymous (nobody) Summary: Error running cobertura in maven Initial Comment: I run the command .... mvn cobertura:cobertura And I get an exception with the cause being "Caused by: java.lang.NoClassDefFoundError: org/apache/maven/reporting/MavenReport" This is in Maven 3.0.4 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3553264&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-05-30 13:25:58
|
Bugs item #3530803, was opened at 2012-05-30 06:25 Message generated for change (Tracker Item Submitted) made by smanux You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530803&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: Emmanuel Bourg (smanux) Assigned to: Nobody/Anonymous (nobody) Summary: ClassFormatError (Invalid method Code length) on large enums Initial Comment: Cobertura breaks on enum classes containing a large number of elements (over 2000). After instrumenting the class a ClassFormatError is thrown: java.lang.ClassFormatError: Invalid method Code length 76521 in class file com/example/Foo.class This is caused by the instrumentation of the static initialization block that instantiate the elements of the enum, after the instrumentation it exceeds the 64K limit. Maybe it would be possible to break this static block into smaller blocks if the size is more than 64k? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530803&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-05-29 17:48:11
|
Bugs item #3530603, was opened at 2012-05-29 10:48 Message generated for change (Tracker Item Submitted) made by ashishhcl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530603&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: Interface (example) Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ashish (ashishhcl) Assigned to: Nobody/Anonymous (nobody) Summary: try-catch blocks for branch coverage Initial Comment: Try catch blocks with checked exceptions should not be considered for branch coverage reports. This should be an option to choose normal or strict parsing. In the case of normal parsing catch block of checked exceptions should be ignored. This gives flexibility to developers to parse their code appropriately ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530603&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-05-29 17:44:44
|
Bugs item #3530602, was opened at 2012-05-29 10:44 Message generated for change (Tracker Item Submitted) made by ashishhcl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530602&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: Interface (example) Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ashish (ashishhcl) Assigned to: Nobody/Anonymous (nobody) Summary: Traversing Javabeans Initial Comment: Simple Javabeans that have getter and setter methods should not be checked for branch coverage ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530602&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-05-11 15:51:10
|
Bugs item #3525884, was opened at 2012-05-11 08:51 Message generated for change (Tracker Item Submitted) made by scooper You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3525884&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: Stephen (scooper) Assigned to: Nobody/Anonymous (nobody) Summary: add support for Java 7 numeric constants with underscore Initial Comment: Currently, if you run cobertura on a java 7 file with a numeric constant which contains an underscore, eg. private static final int CONSTANT=1_000; you get the following error: [INFO] --- cobertura-maven-plugin:2.5.1:cobertura (default-cli) @ message-core --- [INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 28 classes. [cobertura] WARN [main] net.sourceforge.cobertura.reporting.ComplexityCalculator - JavaNCSS got an error while parsing the java file /var/lib/jenkins/jobs/message-core_master/workspace/src/main/java/com/ften/message/core/packet/TcpPacketProvider.java ParseException in STDIN Last useful checkpoint: "com.ften.message.core.packet.TcpPacketProvider" Encountered " <IDENTIFIER> "_000 "" at line 26, column 63. Was expecting one of: "instanceof" ... ";" ... "," ... ">" ... "<" ... "?" ... "==" ... "<=" ... ">=" ... "!=" ... "||" ... "&&" ... "++" ... "--" ... "+" ... "-" ... "*" ... "/" ... "&" ... "|" ... "^" ... "%" ... ">" ... Also, I see that there have been several patches to cobertura since its last release in 2010. Given that there are two existing patches for java 7 support already, would you consider making a new release so that e.g. maven reports can be used on java 7 projects? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3525884&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-04-11 22:27:47
|
Bugs item #2015513, was opened at 2008-07-10 16:43 Message generated for change (Comment added) made by stryke3 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2015513&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: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Inline appends to StringBuffer throw off coverage Initial Comment: I have some code that builds a string in a buffer: StringBuilder b = new StringBuilder(); b.append(“a”).append(“b”).append(“c”); My cobertura report was showing 0 coverage in seemingly random places in the file, including in blank lines between methods and in comments. By trial and error I discovered that unchaining the appends makes the report accurate: StringBuilder b = new StringBuilder(); b.append(“a”); b.append(“b”); b.append(“c”); This is with Cobertura 1.9 executed via Maven2 plugin ---------------------------------------------------------------------- Comment By: Robert Moore (stryke3) Date: 2012-04-11 15:27 Message: This has also affected reporting for one of my projects. In the meantime, I've taken the same approach (expanding the calls). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2015513&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-31 10:14:22
|
Bugs item #3327154, was opened at 2011-06-24 02:42 Message generated for change (Comment added) made by dimasmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3327154&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: Jose Miguel Samper (jmiguelsamper) Assigned to: Nobody/Anonymous (nobody) Summary: Error with Java 7 diamond operator Initial Comment: Java 7 diamond operator, i.e., List<String> list = new ArrayList<>(); is not recognized by Cobertura, throwing the following exception: net.sourceforge.cobertura.javancss.parser.ParseException: Encountered " ">" "> "" at line 19, column 68. Was expecting one of: "boolean" ... "byte" ... "char" ... "double" ... "float" ... "int" ... "long" ... "short" ... <IDENTIFIER> ... "?" ... "boolean" ... "char" ... "byte" ... "short" ... "int" ... "long" ... "float" ... "double" ... <IDENTIFIER> ... "?" ... "?" ... "?" ... "?" ... ---------------------------------------------------------------------- Comment By: Dmytro Kovalchuk (dimasmith) Date: 2012-03-31 03:14 Message: Fix available in patch 3513556 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3327154&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 15:12:51
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 08:12 Message: Looking forward to reading more. Great article.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 05:38 Message: Muchos Gracias for your blog.Much thanks again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 04:07 Message: Really enjoyed this article.Really looking forward to read more. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 03:52 Message: wow, awesome blog article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 02:51 Message: Major thanks for the blog.Really looking forward to read more. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 12:38:07
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 05:38 Message: Muchos Gracias for your blog.Much thanks again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 04:07 Message: Really enjoyed this article.Really looking forward to read more. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 03:52 Message: wow, awesome blog article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 02:51 Message: Major thanks for the blog.Really looking forward to read more. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 11:07:17
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 04:07 Message: Really enjoyed this article.Really looking forward to read more. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 03:52 Message: wow, awesome blog article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 02:51 Message: Major thanks for the blog.Really looking forward to read more. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 10:52:46
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 03:52 Message: wow, awesome blog article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 02:51 Message: Major thanks for the blog.Really looking forward to read more. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 09:51:32
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 02:51 Message: Major thanks for the blog.Really looking forward to read more. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 08:36:47
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&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: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 01:36 Message: Really enjoyed this blog post. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |