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: 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: 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: 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: 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 |