|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Gaining Coverage DataHi All,
I trying to gain raw coverage data from the using Junit Test in an attempt to gain coverage from each test. My final aim is to generate something link table one below, indicating the Junit test on far left column and program coverage across the top. One in the table indicate that line be exercised, while a zero indicate that line has not been exercised by that test. I would like to to this for statement and branch coverage. Line 1 Line 2 Line 3 Test 1 1 1 0 Test 2 1 1 1 Test 3 1 1 1 Table One Can this be done in cobertura or does anybody know how I could achieve this? Thanks in advanced. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: Gaining Coverage DataTheoretically possible, but going to take some effort.
You could override tearDown() such that it forces the cobertura.ser file to be written (there's sample code for this). Additionally, you would then have to copy that .ser file off such that the next test had a clean .ser file. When the suite was complete, you'd wind up with an array of .ser files. From there, its just a data mining exercise. -----Original Message----- From: Mark Hadley [mailto:kehmjh.home@...] Sent: Thursday, October 08, 2009 2:37 PM To: cobertura-devel@... Subject: [Cobertura-devel] Gaining Coverage Data Hi All, I trying to gain raw coverage data from the using Junit Test in an attempt to gain coverage from each test. My final aim is to generate something link table one below, indicating the Junit test on far left column and program coverage across the top. One in the table indicate that line be exercised, while a zero indicate that line has not been exercised by that test. I would like to to this for statement and branch coverage. Line 1 Line 2 Line 3 Test 1 1 1 0 Test 2 1 1 1 Test 3 1 1 1 Table One Can this be done in cobertura or does anybody know how I could achieve this? Thanks in advanced. ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: Gaining Coverage DataI submitted a patch for this (#2581839) but it was not adopted. It results in a .ser named for each test and a standard Java properties file with pass/fail statuses. Listeners for JUnit 3/4, the JUnit Ant task and remote flushing with the servlet-based mechanism.
I can provide my patched version if requested, but you should be aware its now two micro versions behind (patched from 1.9.1) the official version. It has some additional corrections not in the last submitted patch update, which I stopped updating after development moved on. It also has fixes for the obvious thread-safety issues from 1.9.1, but I can't say with certainty how it compares to 1.9.2 in that regard. -Jake On Fri, Oct 9, 2009 at 9:31 AM, Bennett, Jeffrey <JJBennett@...> wrote: Theoretically possible, but going to take some effort. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
| Free embeddable forum powered by Nabble | Forum Help |