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: Mirooshidan A. <mir...@gm...> - 2012-01-13 22:22:41
|
> > 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: Roger B. <ro...@ro...> - 2012-01-07 06:01:07
|
-----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----- |
From: Moreno P. <mpa...@es...> - 2012-01-05 13:17:16
|
Dear users, I instrumented 5 jars of our in house developed applications. Other jars comes from thirdy party and we are not interested in them. Unfortunately after that an error always occurred during the application execution: Message: java.lang.ClassCastException: $Proxy18 cannot be cast to org.eso.ohs.gui.obsblock.ObsBlockDocument .... ... java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) java.awt.EventDispatchThread.run(EventDispatchThread.java:122) I wonder why thes cast exceprtion problem only appears after instrumentation. Someone of you have some hints? Thanks Moreno -- Moreno Pasquato European Organization for Astronomical Research in the Southern Hemisphere Software Development Division/Software Engineering Department Karl-Schwarzschild-Strasse 2, D-85748 Garching bei Muenchen, Germany. Email: mpa...@es... Tel: +49 89 3200-6603 Fax: +49 89 3200-6677 |
From: Roger B. <ro...@ro...> - 2012-01-03 07:30:10
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/01/12 18:21, Roger Binns wrote: > I then run using java -cp Cobertura.jar > -Dnet.sourceforge.cobertura.datafile=..path.. -jar myfile.jar my args It turns out that if you specify -jar and also go to the trouble of specifying -cp then they do the only logical thing - completely ignore what you specify as a classpath despite having gone to the trouble of making one. Addressing that fixed the issue but led to the next one which is that Cobertura unilaterally prints gunk to stdout which is a big problem for a command line tool. I was able to delete those lines from the source and rebuild, but that sort of thing should really not happen or be configurable. Also entered a bug in the tracker although it looks rather neglected. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8CrnsACgkQmOOfHg372QR1owCeIeACIRB/n/UZQ/V/PqbQgO2E HgUAoNZuHbDALm86oECmA/DgxpPLghg1 =aimC -----END PGP SIGNATURE----- |
From: Roger B. <ro...@ro...> - 2012-01-03 02:36:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Due to the way everything is structured I end up with all my relevant code in a JAR file. The instrumentation of that file works just fine (I output to a different location). If I unzip and then use javap I can see all the calls to TouchCollector.touch that have been inserted. I then run using java -cp Cobertura.jar - -Dnet.sourceforge.cobertura.datafile=..path.. -jar myfile.jar my args The .ser file is never touched and so the final report just shows no lines of code executed. I was calling System.exit in my main() because I need to give different error codes for errors. But even removing the System.exit(0) for the no errors case still doesn't result in the .ser file being touched. So how do I convince Cobertura actually update the .ser file when using a jar file? And what should I do when I need to test calling System.exit()? I'm happy to use reflection etc. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8CZggACgkQmOOfHg372QSJyACgvXawu3ZV8mTMwhOqVqaWbrmL tmoAniwTEE4HAS62FVyxsBxXH3zBlQAr =LU9V -----END PGP SIGNATURE----- |
From: AnilTallapragada <use...@gm...> - 2012-01-02 07:15:29
|
How Stupid of me. The build.xml has a explicit comment <!-- The following line causes instrument to ignore any source line containing a reference to log4j, for the purposes of coverage reporting. --> <ignore regex="org.apache.log4j.*" /> This explains the reason for the lines under question to be ignored for coverage. If I comment the above line in build.xml, then all the lines in the code are being properly reported. This post can be closed. Sorry for the trouble. Thanks & Regards T. Anil Kumar -- View this message in context: http://old.nabble.com/UnCovered-lines-not-even-shown-as-0-tp33050328p33064575.html Sent from the cobertura-devel mailing list archive at Nabble.com. |
From: AnilTallapragada <use...@gm...> - 2012-01-02 05:17:20
|
I am using cobertura-1.9.4.1 -- View this message in context: http://old.nabble.com/UnCovered-lines-not-even-shown-as-0-tp33050328p33064391.html Sent from the cobertura-devel mailing list archive at Nabble.com. |
From: Christou, S. <ste...@re...> - 2011-12-29 18:30:21
|
Hmm, very interesting. What version of cobertura are you using? 2011/12/29 userSP Synopsys <use...@gm...> > Hi , > I was trying to replicate a problem of false code coverage with our > code. > In an attempt, I started playing with the basic example packaged along > with the cobertura. > > Can some one explain why the lines 146 don' have a "0" against them when > this line is not executed by the test. > > > Attached is the image > > Thanks & Regards > T. Anil Kumar > > > > > > > ------------------------------------------------------------------------------ > 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 > > Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: <F_C...@DE...> - 2011-12-29 15:34:02
|
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 |
From: sungl <jav...@16...> - 2011-12-29 05:02:26
|
the build.xml is the same the detail info is: eclipse: instrument: [delete] Deleting: E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\cobertura.ser [delete] Deleting directory E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-instrument] Instrumenting 306 classes to E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura: Saved information on 304 classes. [cobertura-instrument] Instrument time: 940ms junit: [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. coverage-report: [cobertura-report] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Loaded information on 304 classes. [cobertura-report] Report time: 3777ms cruisecontrol.bat: [cobertura-instrument] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-instrument] Instrumenting 306 classes to D:\download_ll\develop\CI\linage\cruisecontrol-bin-2.8.4\projects\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura: Saved information on 304 classes. [cobertura-instrument] Instrument time: 808ms ccAntProgress -- junit [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. ccAntProgress -- coverage-report [cobertura-report] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Loaded information on 304 classes. [cobertura-report] Report time: 4083ms I need your help ,thanks |
From: sungl <jav...@16...> - 2011-12-29 05:00:17
|
the build.xml is the same the detail info is: eclipse: instrument: [delete] Deleting: E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\cobertura.ser [delete] Deleting directory E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-instrument] Instrumenting 306 classes to E:\workspace\linkage\workspace_agreement_core\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura: Saved information on 304 classes. [cobertura-instrument] Instrument time: 940ms junit: [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. [junit] Cobertura: Saved information on 304 classes. coverage-report: [cobertura-report] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Loaded information on 304 classes. [cobertura-report] Report time: 3777ms cruisecontrol.bat: [cobertura-instrument] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-instrument] Instrumenting 306 classes to D:\download_ll\develop\CI\linage\cruisecontrol-bin-2.8.4\projects\crm.AgreementManagerWeb\report\coverage [cobertura-instrument] Cobertura: Saved information on 304 classes. [cobertura-instrument] Instrument time: 808ms ccAntProgress -- junit [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. [junit] Cobertura: Saved information on 161 classes. ccAntProgress -- coverage-report [cobertura-report] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Loaded information on 304 classes. [cobertura-report] Report time: 4083ms I need your help ,thanks |
From: Zac H. <zac...@gm...> - 2011-12-21 19:15:18
|
I am brand new to Cobertura and am getting what looks like a fairly common error. The only problem is that the solutions I'm seeing posted online don't seem to be helping me! Here is my *cobertura.class.path*: <path id="cobertura.class.path"> <fileset dir="lib/test"> <include name="**/*.jar"/> </fileset> </path> And here is my *code-coverage-setup* Ant target which defines * cobertura-instrument*: <target name="code-coverage-setup"> <taskdef classpathref="cobertura.class.path" resource="tasks.properties" /> <cobertura-instrument todir="generated/instrumented-bin/cobertura" datafile="generated/data/cobertura/cobertura.ser"> <fileset dir="bin/main"> <include name="**/*.class"/> </fileset> </cobertura-instrument> </target> Then inside my primary *test* Ant target, I call *code-coverage-setup* as the first item (prior to confiruing the *junit* element): <target name="test" depends="test-compile"> <antcall target="code-coverage-setup"/> <junit printsummary="yes" haltonfailure="no" failureproperty="tests.failed"> ... </target> In the Ant build output I am getting the following printout when I run *test *: test: code-coverage-setup: [taskdef] Could not load definitions from resource tasks.properties. It could not be found. BUILD FAILED C:\Users\me\Desktop\workspace\MyProject\build.xml:190: The following error occurred while executing this line: C:\Users\meDesktop\workspace\MyProjectbuild.xml:272: Problem: failed to create task or type cobertura-instrument Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. Line 190 is the antcall to the *code-coverage-setup* target, and Line 272 is the line inside the *cobertura-instrument* element where the *datafile*attribute is being set to "generated/data/cobertura/cobertura.ser". Relevant online searches seem to indicate that I am simply missing this * tasks.properties* file. My question: where is this file?!?! How do I find/download it? Where should I place this file so that Ant/Cobertura can pick it up and use it? I downloaded the latest Cobertura distrib and did not see this properties file anywhere inside of it. Please advise! And thanks in advance! Zac |
From: Cédric T. <ced...@gm...> - 2011-12-20 07:54:15
|
It looks like the following problem : http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CE8EEB%40MERCMBX05D.na.SAS.com&forum_name=cobertura-devel Sounds difficult... maybe i could hack directly the source code of cobertura ? On 12/19/2011 07:20 PM, Cédric Teyton wrote: > Hi everybody, > > I'm kinda new with Cobertura, i've managed to make it work on a Maven > Project using the Maven Plugin, it was quite simple and did good job :) > Actually, i'm interested in finding which test methods do actually > execute an instruction. I guess this is computed somehow, since there > is a hit counts for each instruction. I'd like to retrieve the > identity of the test methods executing this instruction. Do you see > what i mean ? Instead of knowing that a line is called 10 times, i'd > like to know the 10 test methods whose execution reach this instruction. > > Any idea on how to do so ? I'm not scare to do efforts to reach my > goal :) > > Kind regards, and thank you for your help. > > Cédric |
From: Cédric T. <ced...@gm...> - 2011-12-19 18:20:22
|
Hi everybody, I'm kinda new with Cobertura, i've managed to make it work on a Maven Project using the Maven Plugin, it was quite simple and did good job :) Actually, i'm interested in finding which test methods do actually execute an instruction. I guess this is computed somehow, since there is a hit counts for each instruction. I'd like to retrieve the identity of the test methods executing this instruction. Do you see what i mean ? Instead of knowing that a line is called 10 times, i'd like to know the 10 test methods whose execution reach this instruction. Any idea on how to do so ? I'm not scare to do efforts to reach my goal :) Kind regards, and thank you for your help. Cédric |
From: AnilTallapragada <use...@gm...> - 2011-12-13 07:03:56
|
Hi, I have attached a HTML report from one of my Cobertura reports. I find that strangely, cobertura is showing 0 for the following items a) Blank Lines . Ex: Line Number 89,236,370 etc b) Commented Lines: Ex. 36, 37,38, 42 etc c) Declarations: Ex: 35, 48, 50, 398, 408, d) Lines Ending with '}' : Ex: 403, 413, 414, 416 etc e) Case statement Declarations with body in next lines: Ex: 636, 638, 640 etc I have also attached an Excel sheet for the Same Page with the above classifications. Any help in identifying the reason is very helpfull as our Coverage numbers are badly being hit by these issues. Thanks & Regards T. Anil Kumar http://old.nabble.com/file/p32964383/Coverage%2BReport.html Coverage+Report.html http://old.nabble.com/file/p32964383/Cobertura_BuggyCoverage.xlsx Cobertura_BuggyCoverage.xlsx -- View this message in context: http://old.nabble.com/Wrong-Coverage-Report-inlcuding-blank-comments-tp32964383p32964383.html Sent from the cobertura-devel mailing list archive at Nabble.com. |
From: Drury, T. <t....@sa...> - 2011-12-02 15:54:38
|
We're starting to use Cobertura for integration tests, but the solutions provided (flush via static method + grab .ser file from server) doesn't automate very well. So I wrote a web service which will grab the Cobertura ProjectData and send it back to the caller. Then I've written a Maven plugin to grab this data from the integration test server. I blogged it here: http://tdruryjavanotes.blogspot.com/2011/12/cobertura-for-integration-testing.html I still have a few steps to go to merge the integration code coverage data with the unit test coverage data, then publish to Sonar. I'm trying to get my employer's approval to open source this, and I don't anticipate any issue here. Are the Cobertura developers interested in this code? It's currently built via Maven and I noticed that Cobertura uses Ant. I'd prefer to continue building it with Maven and my code makes no changes to the Cobertura code so I'll likely leave it as-is and put it in github unless someone has a better idea. Thanks, -tim |
From: Darío T. N. <dar...@ho...> - 2011-11-30 08:07:41
|
Hello Using Cobertura through Sonar 2.11 (I'm sorry, I still haven't find the Cobertura version used) I realized that a class with a single private constructor detects as uncovered code that constructor if there's no an static instance of the class (just as it should, since the constructor has never been used) However, the constructor can't be used unless with a singleton pattern (a factory one would detect the factory methods as covered or not, and then it will be reasonable to mark the constructor too) so I think to detect that could be an improvement, to let the use of utility classes. Kind regards |
From: Piotr T. <pi...@ta...> - 2011-11-28 21:26:57
|
Nice, thanks. John, how about linking it from: " http://cobertura.sourceforge.net/introduction.html" ? Piotr 2011/11/23 Hebert Coelho <heb...@gm...> > Hello, I wrote a tutorial (howTo) of how to set up cobertura in the APP. > > To help other users I was thinking if you guys could put the link in the > FAQ area. > > There is also a link to download the tutorial source code. > > Thanks > > (English version. There is also a Portuguese version of the post) > Covering your tests with Cobertura, JUnit, HSQLDB, JPA > http://uaihebert.com/?p=63 > ---- > > Atenciosamente, > > Hébert > > Meu blog sobre desenvolvimento em Java uaiHebert <http://uaihebert.com> ( > http://uaihebert.com). > > Certificações > > SCJP - 1.6 (Em Inglês) > SCWCD - 1.5 (Em Inglês) > OCBCD - Em andamento > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > -- Pozdrawiam, Piotr Tabor |
From: Hebert C. <heb...@gm...> - 2011-11-23 20:28:03
|
Hello, I wrote a tutorial (howTo) of how to set up cobertura in the APP. To help other users I was thinking if you guys could put the link in the FAQ area. There is also a link to download the tutorial source code. Thanks (English version. There is also a Portuguese version of the post) Covering your tests with Cobertura, JUnit, HSQLDB, JPA http://uaihebert.com/?p=63 ---- Atenciosamente, Hébert Meu blog sobre desenvolvimento em Java uaiHebert <http://uaihebert.com> ( http://uaihebert.com). Certificações SCJP - 1.6 (Em Inglês) SCWCD - 1.5 (Em Inglês) OCBCD - Em andamento |
From: Fabien B. <fba...@gm...> - 2011-11-23 14:14:24
|
Hello John, Any news about the next release date ? Fabien On Tue, Jul 5, 2011 at 8:22 PM, John W. Lewis <Joh...@sa...> wrote: > ** ** > > It will probably be Cobertura 2.0, which is why I am being really > careful. I am currently code reviewing the new changes. Assuming that > goes well and I don’t get pulled off onto something else, it could happen > in two weeks or so.**** > > ** ** > > John**** > > ** ** > > ** ** > > *From:* Fabien Bataille [mailto:fba...@gm...] > *Sent:* Tuesday, July 05, 2011 2:48 AM > *To:* cobertura-devel > *Subject:* [Cobertura-devel] Any date for next Cobertura official release > 1.10 ?**** > > ** ** > > Hi, > > Is there any date planned for the next Cobertura official release ? > > Thanks > > Fabien**** > |
From: Steven C. <ste...@re...> - 2011-11-14 21:03:10
|
No, but the trunk version of cobertura should be working with the latest jdk. Someone in a previous email thread said that the javac 7 did something unique to end loop braces which increases coverage. The end brace ( } ) is counted as a line of code now. On 11/14/2011 1:25 PM, Thornock, Brian (Brian) wrote: > > Hi, > > Has anyone tried running Cobertura 1.9.4.1 with OpenJDK7? > > Anyone know if it's supported, will be supported, or if anyone is > currently working on enhancing it for this support? > > Cheers, > > Brian > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: Thornock, B. (Brian) <bth...@av...> - 2011-11-14 19:26:06
|
Hi, Has anyone tried running Cobertura 1.9.4.1 with OpenJDK7? Anyone know if it's supported, will be supported, or if anyone is currently working on enhancing it for this support? Cheers, Brian |
From: Lars T. H. <lt...@gm...> - 2011-10-31 19:32:30
|
Hi! I have 2 maven projects: Project 1 consist of implementation classes. Project 2 consist of test classes for project 1. My problem is that I am not able to get any code coverage of project1 (my impl classes). When I run mvn cobertura:cobertura I don't get a cobertura.ser file It works fine if I have the impl & test classes in same project. Is it possible to configure this in some way, in order to get this to work? Rgds Lars Tore |
From: Piotr T. <pi...@ta...> - 2011-10-19 16:10:53
|
Hi, I think that you must force your application to dump the state before it will exit: Try calling something like that: try { String className = "net.sourceforge.cobertura.coveragedata.ProjectData"; String methodName = "saveGlobalProjectData"; Class saveClass = Class.forName(className); java.lang.reflect.Method saveMethod = saveClass.getDeclaredMethod(methodName, new Class[0]); saveMethod.invoke(null,new Object[0]); } catch (Throwable t) { } Just before you application exit... Maybe in the last unit test (I know - it is hacky) . Piotr 2011/10/9 Pu Gong <pu...@gm...> > Hi guys, > I am trying to get the coverage number of my Android project tests. I did > the following things to make the instrumented class can run on Android > without any Java exception, but I couldn't get the cobertura.ser file. > Anyone can tell me how to make Cobertura support Android. > 1. Set the data file output path in run time by calling the > System.setProperty. > 2. Instrument all .class file of the Android apk project > 3. Package all .class, coberatura.jar and all dependent jars. log4j.jar > is replaced by slf4j. > 4. Install the apk. > 5. Install the test apk and run. Since on Android an application doesn't > quit by user pressing Back/Home button, I use the test apk to make the app > quit. The system will exit the app process after the junit tests finish. > After I run the junit test, I didn't get any data file (.ser file). > > Thanks a lot. > -G.P > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > -- Pozdrawiam, Piotr Tabor |
From: Lei C. <che...@gm...> - 2011-10-12 23:39:48
|
I'm running Cobertura under Maven using Sonar, with command: mvn sonar:sonar. I'm seeing Cobertura coverage analysis being generated under ../target/site/cobertura/ and the directory contains index.html along with other HTML files. If I open up index.html under a browser, it looks like valid coverage analysis output. I have another project that generates the HTML files along with coverage.xml, but for some reason, the second project only generate the HTML files, but not coverage.xml. The only difference is the first project has all-passing unit tests. The second project does not. Is this the reason why coverage.xml is not generated? If not, how do I generate coverage.xml? |