From: Shi.Zhao <shi...@or...> - 2010-12-09 23:48:22
|
Hi, I own a very huge java project with lots of java classes. some code is really useful but very hard or impossible to test. Is there any work around to ignore those lines? For example, Specifying /* Not feasible */ in java souce, then Cobertura ignore it. Thanks in advance! Thanks, -Shi |
From: Steven C. <ste...@re...> - 2010-12-10 00:31:52
|
It is not possible to have something like the following (at least to the best of my understanding): public void someMethod() { ... //Cobertura ignore start ... ... //Cobertura ignore end ... } There are 2 suggested methods below: In your ant script you can add the following: | <ignore regex="org.apache.log4j.*" /> | |In this example you will ignore everything that's located in org.apache.log4j.* .| |Another method is to not instrument the specific file by adding an exclude for the certain file:| |<exclude name="**/NAME_OF_FILE.java"/> | On 12/9/2010 5:50 PM, Shi.Zhao wrote: > Hi, > > I own a very huge java project with lots of java classes. some code is really useful but very hard or impossible to test. > Is there any work around to ignore those lines? For example, Specifying /* Not feasible */ in java souce, then Cobertura ignore it. > > Thanks in advance! > > Thanks, > -Shi > > ------------------------------------------------------------------------------ > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |
From: Piotr T. <pi...@ta...> - 2010-12-10 12:41:41
|
Ignore method annotation should be available in next release. Piotr 2010/12/10 Steven Christou <ste...@re...> > It is not possible to have something like the following (at least to the > best of my understanding): > > public void someMethod() { > ... > //Cobertura ignore start > ... > ... > //Cobertura ignore end > ... > } > > There are 2 suggested methods below: > > In your ant script you can add the following: > > <ignore regex="org.apache.log4j.*" /> > > In this example you will ignore everything that's located in > org.apache.log4j.* . > > Another method is to not instrument the specific file by adding an exclude > for the certain file: > <exclude name="**/NAME_OF_FILE.java"/> > > > > On 12/9/2010 5:50 PM, Shi.Zhao wrote: > > Hi, > > I own a very huge java project with lots of java classes. some code is really useful but very hard or impossible to test. > Is there any work around to ignore those lines? For example, Specifying /* Not feasible */ in java souce, then Cobertura ignore it. > > Thanks in advance! > > Thanks, > -Shi > > ------------------------------------------------------------------------------ > _______________________________________________ > Cobertura-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > Email Disclaimer:http://www.redprairie.com/emaildisclaimer/ > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > -- Pozdrawiam, Piotr Tabor |
From: Shi.Zhao <shi...@or...> - 2010-12-10 17:39:21
|
Hi Piotr, Thanks very much! Could you let me know the release schedule? Where can i found it? Is there possible to download a beta version before relase? Thanks, -Shi 于 2010/12/10 4:41, Piotr Tabor 写道: > Ignore method annotation should be available in next release. > > Piotr > > 2010/12/10 Steven Christou <ste...@re... <mailto:ste...@re...>> > > It is not possible to have something like the following (at least to the best of my understanding): > > public void someMethod() { > ... > //Cobertura ignore start > ... > ... > //Cobertura ignore end > ... > } > > There are 2 suggested methods below: > > In your ant script you can add the following: > > | <ignore regex="org.apache.log4j.*" /> > | > > |In this example you will ignore everything that's located in org.apache.log4j.* .| > > |Another method is to not instrument the specific file by adding an exclude for the certain file:| > |<exclude name="**/NAME_OF_FILE.java"/> > | > > > > On 12/9/2010 5:50 PM, Shi.Zhao wrote: >> Hi, >> >> I own a very huge java project with lots of java classes. some code is really useful but very hard or impossible to test. >> Is there any work around to ignore those lines? For example, Specifying /* Not feasible */ in java souce, then Cobertura ignore it. >> >> Thanks in advance! >> >> Thanks, >> -Shi >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Cobertura-devel mailing list >> Cob...@li... <mailto:Cob...@li...> >> https://lists.sourceforge.net/lists/listinfo/cobertura-devel > Email Disclaimer: > http://www.redprairie.com/emaildisclaimer/ > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... <mailto:Cob...@li...> > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > > -- > Pozdrawiam, > Piotr Tabor > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
From: Piotr T. <pi...@ta...> - 2010-12-12 20:25:43
|
Hi Shi, You can try my last snapshot build: http://duch.mimuw.edu.pl/~ptab/Cobertura/cobertura-1.10.0-2010.12.12-ptab.jar I hope that we near the release. Piotr On Fri, Dec 10, 2010 at 6:42 PM, Shi.Zhao <shi...@or...> wrote: > Hi Piotr, > > Thanks very much! > > Could you let me know the release schedule? Where can i found it? > Is there possible to download a beta version before relase? > > Thanks, > -Shi > > 于 2010/12/10 4:41, Piotr Tabor 写道: > > Ignore method annotation should be available in next release. > > > > Piotr > > > > 2010/12/10 Steven Christou <ste...@re... <mailto: > ste...@re...>> > > > > It is not possible to have something like the following (at least to > the best of my understanding): > > > > public void someMethod() { > > ... > > //Cobertura ignore start > > ... > > ... > > //Cobertura ignore end > > ... > > } > > > > There are 2 suggested methods below: > > > > In your ant script you can add the following: > > > > | <ignore regex="org.apache.log4j.*" /> > > | > > > > |In this example you will ignore everything that's located in > org.apache.log4j.* .| > > > > |Another method is to not instrument the specific file by adding an > exclude for the certain file:| > > |<exclude name="**/NAME_OF_FILE.java"/> > > | > > > > > > > > On 12/9/2010 5:50 PM, Shi.Zhao wrote: > >> Hi, > >> > >> I own a very huge java project with lots of java classes. some > code is really useful but very hard or impossible to test. > >> Is there any work around to ignore those lines? For example, > Specifying /* Not feasible */ in java souce, then Cobertura ignore it. > >> > >> Thanks in advance! > >> > >> Thanks, > >> -Shi > >> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Cobertura-devel mailing list > >> Cob...@li... <mailto: > Cob...@li...> > >> https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > Email Disclaimer: > > http://www.redprairie.com/emaildisclaimer/ > > > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... <mailto: > Cob...@li...> > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > > > > > > > -- > > Pozdrawiam, > > Piotr Tabor > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > -- Pozdrawiam, Piotr Tabor |