You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
(66) |
Apr
(29) |
May
(85) |
Jun
(66) |
Jul
(24) |
Aug
(139) |
Sep
(72) |
Oct
(26) |
Nov
(142) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(55) |
Feb
(72) |
Mar
(43) |
Apr
(60) |
May
(95) |
Jun
(22) |
Jul
(48) |
Aug
(17) |
Sep
(54) |
Oct
(30) |
Nov
(82) |
Dec
(17) |
2007 |
Jan
(23) |
Feb
(38) |
Mar
(46) |
Apr
(12) |
May
(77) |
Jun
(77) |
Jul
(94) |
Aug
(51) |
Sep
(38) |
Oct
(57) |
Nov
(39) |
Dec
(67) |
2008 |
Jan
(38) |
Feb
(56) |
Mar
(42) |
Apr
(46) |
May
(37) |
Jun
(43) |
Jul
(52) |
Aug
(22) |
Sep
(22) |
Oct
(34) |
Nov
(37) |
Dec
(29) |
2009 |
Jan
(27) |
Feb
(35) |
Mar
(67) |
Apr
(37) |
May
(31) |
Jun
(79) |
Jul
(71) |
Aug
(59) |
Sep
(31) |
Oct
(47) |
Nov
(36) |
Dec
(7) |
2010 |
Jan
(15) |
Feb
(87) |
Mar
(38) |
Apr
(33) |
May
(24) |
Jun
(47) |
Jul
(26) |
Aug
(28) |
Sep
(33) |
Oct
(13) |
Nov
(8) |
Dec
(36) |
2011 |
Jan
(32) |
Feb
(10) |
Mar
(29) |
Apr
(29) |
May
(17) |
Jun
(14) |
Jul
(33) |
Aug
(11) |
Sep
(7) |
Oct
(7) |
Nov
(6) |
Dec
(10) |
2012 |
Jan
(19) |
Feb
(12) |
Mar
(16) |
Apr
(6) |
May
(18) |
Jun
(18) |
Jul
(31) |
Aug
(25) |
Sep
|
Oct
(31) |
Nov
(21) |
Dec
(9) |
2013 |
Jan
(8) |
Feb
(16) |
Mar
(8) |
Apr
(7) |
May
(3) |
Jun
(29) |
Jul
(29) |
Aug
|
Sep
(7) |
Oct
(9) |
Nov
(1) |
Dec
(1) |
2014 |
Jan
(3) |
Feb
(4) |
Mar
|
Apr
(13) |
May
(8) |
Jun
(5) |
Jul
(2) |
Aug
(4) |
Sep
(4) |
Oct
(2) |
Nov
|
Dec
(2) |
2015 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(2) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alexander L. <ale...@to...> - 2012-03-08 18:51:29
|
hello, during cobertura-instrument i get the following exception: [cobertura-instrument] WARN addInstrumentationToSingleClass, Unable to instrument file [foo].class [cobertura-instrument] java.lang.ArrayIndexOutOfBoundsException: 10 [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source) [cobertura-instrument] at org.objectweb.asm.MethodAdapter.visitMaxs(Unknown Source) [cobertura-instrument] at net.sourceforge.cobertura.instrument.SecondPassMethodInstrumenter.visitMaxs(SecondPassMethodInstrumenter.java:353) [cobertura-instrument] at org.objectweb.asm.tree.MethodNode.accept(Unknown Source) [cobertura-instrument] at net.sourceforge.cobertura.instrument.FirstPassMethodInstrumenter.visitEnd(FirstPassMethodInstrumenter.java:95) [cobertura-instrument] at org.objectweb.asm.ClassReader.accept(Unknown Source) [cobertura-instrument] at org.objectweb.asm.ClassReader.accept(Unknown Source) [cobertura-instrument] at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:358) [cobertura-instrument] at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:416) [cobertura-instrument] at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:492) [cobertura-instrument] at net.sourceforge.cobertura.instrument.Main.main(Main.java:514) do you have any idea what the cause might be? thanks & regards alex -- Alexander Lorenz | Test Engineer Traffic | TomTom Content Production Unit Berlin | ale...@to... | +49-30-756543-194 | www.tomtom.com |
From: Roger B. <ro...@ro...> - 2012-03-08 04:50:31
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/03/12 12:39, Kevin Bedard wrote: > Hello. Are branches counted by counting the newline chars in my code? > Or does it count the statement separators? Or other? It works on the bytecode, not the source and does both line and branch based coverage. Use 'javap' on a .class file to see what the insides look like (before you have run Cobertura on it). The line based coverage merely checks that for any line that has corresponding bytecode, any of that bytecode has been executed. > If (exp1) or (exp2) then action1; The bytecode for that line looks something like this: evaluate exp1 if true goto body evaluate exp2 if false goto end :body evaluate action1 :end If exp1 was always true then the exp2 bit is never executed. Branch reporting would look at the above byte code and see that there are 2 gotos and check that they are both executed. (I don't know exactly what it does behind the scenes - that is the principle to make sure all the bytecode is executed.) > How does Cobertura report coverage on such a statement? Look at the top of the HTML report. There is one column for line coverage and one column for branch coverage. In the listing lines where all the code has been executed are shown with a green margin. Lines where not all branches have been taken are highlighted in a pinkish red. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9YNnAACgkQmOOfHg372QTZGQCfeWL5uj+eWLsR0XV/JBkwlc9k +EgAn1RjOOvMrCEX3k7J/x2DHEReEUkj =U+B2 -----END PGP SIGNATURE----- |
From: Soni, A. IN B. S. <ash...@si...> - 2012-02-29 07:47:03
|
Hi, I want to know that cobertura will work properly with JDK1.7? I am planning to move to the JDK7. ---------------------------------------------------------------- With best regards, Ashish Soni Siemens Information Systems Ltd. Corporate Technology Corporate Development Center India Healthcare 1 PACS No 84, Keonics Electronics City, Hosur Road, Bangalore 560100 Tel.: +91 80 2511 3353 mailto.: ash...@si...<mailto:ash...@si...> www.siemens.co.in<http://www.siemens.co.in> |
From: Martin K. <mar...@fe...> - 2012-02-24 09:16:27
|
Hi, On Mon, 20 Feb 2012 14:55:35 +0000, Peter Reilly <pet...@gm...> wrote: > Actually, a question would be why there there is a complexity number in > cobertura at all. > > A coverage tool should just do coverage.. > > Peter I didn't mean to question cobertura's use of javancss (though it may be questionable, but that's another issue). My problem is that the current implementation is broken, and that workarounds are infeasible: You just can't sensibly tell a java developer to say char umlautChar = "ä".charAt(0); instead of char umlautChar = 'ä'; just to get cobertura working. There even is a patch regarding this issue. The question is if there's anything I can to to help get that patch incorporated. I ran into this problem when analyzing builds from jenkins - so the decision I need to make is whether I help getting cobertura fixed, or implement jacoco support for jenkins (emma seems even less maintained, so that's not an option). As the former seems easier, I'd be willing to help fixing cobertura. Martin |
From: ILanit S. <is...@re...> - 2012-02-21 12:21:17
|
Mike, Thanks you for your reply, This coverage percentages display sounds good, but we actually look for line of code diff. For example, when A test code coverage decreases, it will show, which exact code lines we dropped. Thanks, Ilanit. ----- Original Message ----- From: "Michael S. Carney" <mc...@pt...> To: cob...@li... Sent: Sunday, February 19, 2012 10:22:21 PM Subject: Re: [Cobertura-devel] Compare 2 Cobrtura code coverage reports I created changes to the Jenkins Cobertura plug-in to display changes in coverage percentages instead of total coverage. It compares to some previous Jenkins build. This is very handy for monitoring changes to code coverage that you can't get from displaying the coverage of a single job. For nested packages it also means you can drill down where you can see coverage changes. Note this does not deal with adding/deleting lines of code, only changes in coverage. Cheers, Mike Carney ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
From: Peter R. <pet...@gm...> - 2012-02-20 14:55:44
|
Actually, a question would be why there there is a complexity number in cobertura at all. A coverage tool should just do coverage.. Peter On Mon, Feb 20, 2012 at 1:01 PM, Martin Kutter <mar...@fe...> wrote: > Hi, > > I've been experiencing an error with UTF-8 characters while scanning a > project with cobertura. > > From what I found, it looks like the error occurs in Javancss, and is due > to the encoding parameter not being passed on to javancss from cobertura. > > The error can be easily replicated by scanning a project containing a > class with a statement like this: > > char umlautChar = 'ä'; > > There's already a bunch of bug reports on this issue, and there are two > patches (one in Issue 2907314, and one as patch 3152767): > > Issues: > https://sourceforge.net/tracker/index.php?func=detail&aid=3049863&group_id=130558&atid=720015 > https://sourceforge.net/tracker/index.php?func=detail&aid=3020621&group_id=130558&atid=720015 > https://sourceforge.net/tracker/index.php?func=detail&aid=2907314&group_id=130558&atid=720015 > > Patch: > https://sourceforge.net/tracker/?func=detail&aid=3152767&group_id=130558&atid=720017 > (the patch is garbled by inconsistent line endings, though). > > I've applied tested the patch from Issue 2907314 locally, and it seems to > work fine. > > The patch adds a encoding parameter to the constructor added by cobertura > to Javancss, and adds encoding handling to the FileFinder. > > The implementation could be simplified by using Javancss' own > Javancss(Reader reader) constructor - this would require > ComplexityCalculator to > create a InputStreamReader on the source in question and pass it on to > Javancss. This would remove the need for introducing a new constructur in > Javancss - however, the Javancss(Reader reader) constructor does not > provide any useful error handling (it just catches Exception without any > further error handling or notification), so this might be a regression. > > Is there anything I can do to get the fix incorporated? > If there's help needed, I can work with the SF SVN and tracker - my SF > username is kutterma > > Best regards, > > Martin > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
From: Martin K. <mar...@fe...> - 2012-02-20 13:01:54
|
Hi, I've been experiencing an error with UTF-8 characters while scanning a project with cobertura. >From what I found, it looks like the error occurs in Javancss, and is due to the encoding parameter not being passed on to javancss from cobertura. The error can be easily replicated by scanning a project containing a class with a statement like this: char umlautChar = 'ä'; There's already a bunch of bug reports on this issue, and there are two patches (one in Issue 2907314, and one as patch 3152767): Issues: https://sourceforge.net/tracker/index.php?func=detail&aid=3049863&group_id=130558&atid=720015 https://sourceforge.net/tracker/index.php?func=detail&aid=3020621&group_id=130558&atid=720015 https://sourceforge.net/tracker/index.php?func=detail&aid=2907314&group_id=130558&atid=720015 Patch: https://sourceforge.net/tracker/?func=detail&aid=3152767&group_id=130558&atid=720017 (the patch is garbled by inconsistent line endings, though). I've applied tested the patch from Issue 2907314 locally, and it seems to work fine. The patch adds a encoding parameter to the constructor added by cobertura to Javancss, and adds encoding handling to the FileFinder. The implementation could be simplified by using Javancss' own Javancss(Reader reader) constructor - this would require ComplexityCalculator to create a InputStreamReader on the source in question and pass it on to Javancss. This would remove the need for introducing a new constructur in Javancss - however, the Javancss(Reader reader) constructor does not provide any useful error handling (it just catches Exception without any further error handling or notification), so this might be a regression. Is there anything I can do to get the fix incorporated? If there's help needed, I can work with the SF SVN and tracker - my SF username is kutterma Best regards, Martin |
From: Carney, M. S. <mc...@pt...> - 2012-02-19 20:36:59
|
I created changes to the Jenkins Cobertura plug-in to display changes in coverage percentages instead of total coverage. It compares to some previous Jenkins build. This is very handy for monitoring changes to code coverage that you can't get from displaying the coverage of a single job. For nested packages it also means you can drill down where you can see coverage changes. Note this does not deal with adding/deleting lines of code, only changes in coverage. Cheers, Mike Carney |
From: ILanit S. <is...@re...> - 2012-02-19 08:13:56
|
Hi, Does anyone knows some plugin/else way to perform A comparison, between 2 Cobertura code coverage reports? We need to identify which code lines were added/removed to/from code coverage between 2 builds. Many thanks, Ilanit. |
From: Soni, A. IN B. S. <ash...@si...> - 2012-02-13 12:22:55
|
I had written a xslt file: 1. Read all coverage/packages/package/classes/class 2. Compare @filename of each with regular expression if matched the read @name, @filename, @line-rate and @branch-rate Now I have problem with how we are calculating the % of @line-rate and @branch-rate? When I checked the value of that in xml and html it differs, as per my understanding html contains percentage value that is calculated from values in xml :) ---------------------------------------------------------------- With best regards, Ashish Soni Siemens Information Systems Ltd. Corporate Technology Corporate Development Center India Healthcare 1 PACS No 84, Keonics Electronics City, Hosur Road, Bangalore 560100 Tel.: +91 80 2511 3353 mailto.: ash...@si...<mailto:ash...@si...> www.siemens.co.in<http://www.siemens.co.in> ________________________________ From: John W. Lewis [mailto:Joh...@sa...] Sent: Wednesday, February 08, 2012 2:06 AM To: Soni, Ashish IN BLR SISL; cob...@li... Subject: RE: Customize cobertura report Unfortunately, there is no way to create an HTML report from an XML file using Cobertura. However, you may want to take a look at some frameworks like Hudson that convert the XML file to HTML. Step 2 looks like you are reading an XML file and writing out another one. I use Groovy to parse and write XML myself. From: Soni, Ashish IN BLR SISL [mailto:ash...@si...] Sent: Thursday, February 02, 2012 5:07 AM To: cob...@li... Subject: [Cobertura-devel] Customize cobertura report Hi, I want customize cobertura report. 1) Target sources file- Scan all source file contains string pattern. 2) Searched only all Target sources file in Summary- coverage.xml File and create new coverage.xml File. 3) After getting the customized coverage.xml file I can generate a new html report. Note: Step one I already done. I need help to achieve Step two and three. ---------------------------------------------------------------- With best regards, Ashish Soni Siemens Information Systems Ltd. Corporate Technology Corporate Development Center India Healthcare 1 PACS No 84, Keonics Electronics City, Hosur Road, Bangalore 560100 Tel.: +91 80 2511 3353 mailto.: ash...@si...<mailto:ash...@si...> www.siemens.co.in<http://www.siemens.co.in> |
From: John W. L. <Joh...@sa...> - 2012-02-07 20:53:42
|
If you are using the ant tasks, specify maxmemory=500MB or higher. From: Mirooshidan Asokan [mailto:mir...@gm...] Sent: Friday, January 13, 2012 5:23 PM To: cob...@li... Subject: Re: [Cobertura-devel] Cobertura Instrumentation Hi, I'm currently trying to instrument a series of jar files. But it constantly fails and reports a Java out of memory error about heap space. Do you have any idea what i could do to proceed to instrument these files. |
From: John W. L. <Joh...@sa...> - 2012-02-07 20:38:30
|
I agree with Roger, but if you want to continue with your previous idea, I would have Cobertura create an XML report and get the information from that. -----Original Message----- From: Roger Binns [mailto:ro...@ro...] Sent: Wednesday, January 25, 2012 1:54 PM To: cob...@li... Subject: Re: [Cobertura-devel] Is there a way of listing my most covered methods? I need to find "over-coverage" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24/01/12 06:11, StevenBoscarine wrote: > I wanted to know which 100 lines were executed the most in a test. A far better approach is to run a profiler to find out what is taking the most execution time. Lines of code are not equal to each other. As an example one of my test suites was taking about 10 minutes. Under the hood it was hammering a SQLite database a lot. Changing the test suite so that the database is on a ramdisk (tmpfs) brought it down to about 50 seconds. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8gT9EACgkQmOOfHg372QRtlgCbB6t4WgaIKoTCj52vnlcLwYS4 veEAnjMoc8nEONHkPkcm3h2E9L+xV7AB =anLe -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
From: John W. L. <Joh...@sa...> - 2012-02-07 20:35:42
|
Unfortunately, there is no way to create an HTML report from an XML file using Cobertura. However, you may want to take a look at some frameworks like Hudson that convert the XML file to HTML. Step 2 looks like you are reading an XML file and writing out another one. I use Groovy to parse and write XML myself. From: Soni, Ashish IN BLR SISL [mailto:ash...@si...] Sent: Thursday, February 02, 2012 5:07 AM To: cob...@li... Subject: [Cobertura-devel] Customize cobertura report Hi, I want customize cobertura report. 1) Target sources file- Scan all source file contains string pattern. 2) Searched only all Target sources file in Summary- coverage.xml File and create new coverage.xml File. 3) After getting the customized coverage.xml file I can generate a new html report. Note: Step one I already done. I need help to achieve Step two and three. ---------------------------------------------------------------- With best regards, Ashish Soni Siemens Information Systems Ltd. Corporate Technology Corporate Development Center India Healthcare 1 PACS No 84, Keonics Electronics City, Hosur Road, Bangalore 560100 Tel.: +91 80 2511 3353 mailto.: ash...@si...<mailto:ash...@si...> www.siemens.co.in<http://www.siemens.co.in> |
From: Soni, A. IN B. S. <ash...@si...> - 2012-02-02 10:38:39
|
Hi, I want customize cobertura report. 1) Target sources file- Scan all source file contains string pattern. 2) Searched only all Target sources file in Summary- coverage.xml File and create new coverage.xml File. 3) After getting the customized coverage.xml file I can generate a new html report. Note: Step one I already done. I need help to achieve Step two and three. ---------------------------------------------------------------- With best regards, Ashish Soni Siemens Information Systems Ltd. Corporate Technology Corporate Development Center India Healthcare 1 PACS No 84, Keonics Electronics City, Hosur Road, Bangalore 560100 Tel.: +91 80 2511 3353 mailto.: ash...@si...<mailto:ash...@si...> www.siemens.co.in<http://www.siemens.co.in> |
From: Roger B. <ro...@ro...> - 2012-01-25 18:54:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24/01/12 06:11, StevenBoscarine wrote: > I wanted to know which 100 lines were executed the most in a test. A far better approach is to run a profiler to find out what is taking the most execution time. Lines of code are not equal to each other. As an example one of my test suites was taking about 10 minutes. Under the hood it was hammering a SQLite database a lot. Changing the test suite so that the database is on a ramdisk (tmpfs) brought it down to about 50 seconds. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8gT9EACgkQmOOfHg372QRtlgCbB6t4WgaIKoTCj52vnlcLwYS4 veEAnjMoc8nEONHkPkcm3h2E9L+xV7AB =anLe -----END PGP SIGNATURE----- |
From: Christou, S. <ste...@re...> - 2012-01-25 18:28:19
|
There probably is no simple way to do that. You might have better luck with an application like hudson, jenkins, sonar or another result reporting utility. On Tue, Jan 24, 2012 at 8:16 AM, Eyal Edri <ee...@re...> wrote: > Cant you create an XML report instead and parse it? > > ----- Original Message ----- > > From: "StevenBoscarine" <ste...@gm...> > > To: cob...@li... > > Sent: Tuesday, January 24, 2012 4:11:49 PM > > Subject: [Cobertura-devel] Is there a way of listing my most covered > methods? I need to find "over-coverage" > > > > Hello All, > > Has someone already created a report to show which the most covered > > lines? I wanted to know which 100 lines were executed the most in a > > test. > > > > Can someone point me into the direction I need to head to query the > > results of a cobertura run? I noticed in the HTML report the number > > of > > times a line is executed is recorded. I am interested in using that > > data to determine which lines are executed the most. > > > > I inherited a large build that takes nearly a half-day to run all of > > its > > tests and I would like to determine which methods are affected by > > redundant tests. > > > > Thanks in advance! > > Steven > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft > > developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > > MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: Eyal E. <ee...@re...> - 2012-01-24 14:16:56
|
Cant you create an XML report instead and parse it? ----- Original Message ----- > From: "StevenBoscarine" <ste...@gm...> > To: cob...@li... > Sent: Tuesday, January 24, 2012 4:11:49 PM > Subject: [Cobertura-devel] Is there a way of listing my most covered methods? I need to find "over-coverage" > > Hello All, > Has someone already created a report to show which the most covered > lines? I wanted to know which 100 lines were executed the most in a > test. > > Can someone point me into the direction I need to head to query the > results of a cobertura run? I noticed in the HTML report the number > of > times a line is executed is recorded. I am interested in using that > data to determine which lines are executed the most. > > I inherited a large build that takes nearly a half-day to run all of > its > tests and I would like to determine which methods are affected by > redundant tests. > > Thanks in advance! > Steven > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |
From: StevenBoscarine <ste...@gm...> - 2012-01-24 14:12:03
|
Hello All, Has someone already created a report to show which the most covered lines? I wanted to know which 100 lines were executed the most in a test. Can someone point me into the direction I need to head to query the results of a cobertura run? I noticed in the HTML report the number of times a line is executed is recorded. I am interested in using that data to determine which lines are executed the most. I inherited a large build that takes nearly a half-day to run all of its tests and I would like to determine which methods are affected by redundant tests. Thanks in advance! Steven |
From: John W. L. <Joh...@sa...> - 2012-01-23 17:10:28
|
I'm alive! Sorry. I have been very busy with other things. I should be able to get caught up with the mailing list this week. -----Original Message----- From: Piotr Tabor [mailto:pi...@ta...] Sent: Monday, January 23, 2012 12:08 PM To: F_C...@de... Cc: cob...@li... Subject: Re: [Cobertura-devel] Cobertura news Hi, Dunno. The 2.0 branch (https://cobertura.svn.sourceforge.net/svnroot/cobertura/branches/ptab_v2_0/) is waiting to be released. I haven't hard from John (the main maintainer) for a long time. Piotr 2011/12/29 <F_C...@de...>: > Hi, I would like to know if you guys are still working on Cobertura. > If you are working in some new released, bug fix or something. And I'm > not talking about the plug-in. > > > > Fabio Costa Silva > > Dell | Financial Services IT > > office +55 51 3274 0000 > > > > > ---------------------------------------------------------------------- > -------- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't > need a complex infrastructure or vast IT resources to deliver > seamless, secure access to virtual desktops. With this all-in-one > solution, easily deploy virtual desktops for less than the cost of PCs > and save 60% on VDI infrastructure costs. Try it free! > http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > -- Pozdrawiam, Piotr Tabor ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
From: Piotr T. <pi...@ta...> - 2012-01-23 17:08:18
|
Hi, Dunno. The 2.0 branch (https://cobertura.svn.sourceforge.net/svnroot/cobertura/branches/ptab_v2_0/) is waiting to be released. I haven't hard from John (the main maintainer) for a long time. Piotr 2011/12/29 <F_C...@de...>: > Hi, I would like to know if you guys are still working on Cobertura. If you > are working in some new released, bug fix or something. And I’m not talking > about the plug-in. > > > > Fabio Costa Silva > > Dell | Financial Services IT > > office +55 51 3274 0000 > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > -- Pozdrawiam, Piotr Tabor |
From: Piotr T. <pi...@ta...> - 2012-01-23 17:06:47
|
It might have been fixed in the 2.0 branch. Test: https://cobertura.svn.sourceforge.net/svnroot/cobertura/branches/ptab_v2_0/ Piotr On Sat, Jan 7, 2012 at 7:00 AM, Roger Binns <ro...@ro...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a switch statement on a byte value. 39 of the values are handled > while the rest go to a default arm (which happens to throw an exception) > as they are invalid. > > Cobertura reports 19% coverage (40 of 203). However this is done even > when I test all possible byte values. It would seem that Cobertura is > counting the distinct switch values rather than distinct targets. > > This is the javap output with some obvious bits elided. > > 73: iload_1 > 74: tableswitch{ //0 to 201 > 0: 5628; > 1: 1903; > 2: 1502; > 3: 2267; > 4: 2657; > 5: 2657; > 6: 2657; > 7: 4620; > 8: 4897; > 9: 5834; > 10: 5465; > 11: 1041; > 12: 2875; > 13: 4814; > 14: 2939; > 15: 3318; > 16: 1371; > 17: 1270; > 18: 1137; > 19: 896; > 20: 5950; > 21: 1137; > 22: 1137; > 23: 5127; > 24: 4952; > 25: 4988; > 26: 2657; > 27: 2167; > 28: 4050; > 29: 4278; > 30: 2437; > 31: 2657; > 32: 2657; > 33: 3807; > 34: 5089; > 35: 5950; > 36: 5950; > ... same up to 124 ... > 124: 5950; > 125: 5950; > 126: 5950; > 127: 5950; > 128: 5434; > 129: 898; > 130: 906; > 131: 937; > 132: 992; > 133: 992; > 134: 5950; > 135: 5950; > ... same up to 158 ... > 158: 5950; > 159: 5950; > 160: 1180; > 161: 5285; > 162: 1112; > 163: 5361; > 164: 4531; > 165: 5950; > 166: 5950; > ... same up to 198 ... > 198: 5950; > 199: 5950; > 200: 1054; > 201: 1077; > default: 5950 } > > Roger > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > > iEYEARECAAYFAk8H35sACgkQmOOfHg372QQy5gCfYtUWPXCy67nrn7SUkHg1aqQd > nUgAnjvmK616B3nc5U5es18QqP5p/WxE > =TXWe > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel -- Pozdrawiam, Piotr Tabor |
From: Tomas F <tof...@gm...> - 2012-01-16 12:41:36
|
I could exclude packages but that would prevent me from getting any information from the excluded packages. So if I used that solution I would have to run cobertura for each subset I want a summary of. I'm afraid that would decrease the maintainability of the configuration to the extent that it wouldn't be worth it. Thanks, Tomas 2012/1/16 Steven Christou <ste...@re...> > I don't think there's a way to generate a subset of all the instrumented > code. You might have some luck though with hudson/jenkins or sonar which > can give you a probably more detailed analysis of your code. > > Can't you just exclude unnecessary packages from being instrumented? > Exclude everything and only include foo.bar.* when instrumenting. > > > On 1/16/2012 3:21 AM, Tomas F wrote: > > Hi, > Is it possible to somehow get a code coverage summary of a subset of > packages? I have 75 packages > in my Java project that are ordered in a certain hierarchy: > > foo > foo.bar > foo.bar.x > foo.bar.y > foo.frotz.x > foo.frotz.y > > Since the number of packages is so big, It is very hard to get an overview > of the cobertura report. The only summary > I get is the summary of the whole project. This summary is of course also > valuable, but it would be great if I could tell cobertura to create a > summary of all "sub"-packages with the prefix foo.bar, given the example > above. > > Best regards, > Tomas > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now!http://p.sf.net/sfu/rsa-sfdev2dev2 > > > > _______________________________________________ > Cobertura-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > Email Disclaimer:http://www.redprairie.com/emaildisclaimer/ > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > |
From: Steven C. <ste...@re...> - 2012-01-16 10:02:36
|
I don't think there's a way to generate a subset of all the instrumented code. You might have some luck though with hudson/jenkins or sonar which can give you a probably more detailed analysis of your code. Can't you just exclude unnecessary packages from being instrumented? Exclude everything and only include foo.bar.* when instrumenting. On 1/16/2012 3:21 AM, Tomas F wrote: > Hi, > Is it possible to somehow get a code coverage summary of a subset of > packages? I have 75 packages > in my Java project that are ordered in a certain hierarchy: > > foo > foo.bar > foo.bar.x > foo.bar.y > foo.frotz.x > foo.frotz.y > > Since the number of packages is so big, It is very hard to get an > overview of the cobertura report. The only summary > I get is the summary of the whole project. This summary is of course > also valuable, but it would be great if I could tell cobertura to > create a summary of all "sub"-packages with the prefix foo.bar, given > the example above. > > Best regards, > Tomas > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: Steven C. <ste...@re...> - 2012-01-16 09:47:05
|
If you're using ant, you add the maxmemory option to give a little more heap space. Please see this for ant: http://cobertura.sourceforge.net/anttaskreference.html for command line I assume you can change the .bat file to increase the heap space with -Xmx tag to something a little higher. On 1/13/2012 4:22 PM, Mirooshidan Asokan wrote: > > Hi, > I'm currently trying to instrument a series of jar files. But it > constantly fails and reports a Java out of memory error about heap > space. Do you have any idea what i could do to proceed to > instrument these files. > > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: Tomas F <tof...@gm...> - 2012-01-16 09:21:21
|
Hi, Is it possible to somehow get a code coverage summary of a subset of packages? I have 75 packages in my Java project that are ordered in a certain hierarchy: foo foo.bar foo.bar.x foo.bar.y foo.frotz.x foo.frotz.y Since the number of packages is so big, It is very hard to get an overview of the cobertura report. The only summary I get is the summary of the whole project. This summary is of course also valuable, but it would be great if I could tell cobertura to create a summary of all "sub"-packages with the prefix foo.bar, given the example above. Best regards, Tomas |