|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Line reported not covered by Cobertura but it's coveredSee the screenshot for the code and the coverage.
The line in red can't be not executing, and both false and true, because the output looks like: OUTPUT: false Untested error code com.jimandlisa.testutils.tests.TestException.FIRST_PROBLEM OUTPUT: false Untested error code com.jimandlisa.testutils.tests.TestException.SECOND_PROBLEM OUTPUT: false Untested error code com.jimandlisa.testutils.tests.TestException.THIRD_PROBLEM OUTPUT: true OUTPUT: true OUTPUT: true When I look at it in the debugger, it's clearly taking the branch sometimes and not others, depending on the value of the codeIsTested flag. What am I missing? --------------------------------- Jim Showalter http://jimshowalter.blogspot.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
|
|
Re: Line reported not covered by Cobertura but it'scoveredThis turns out to be a side-effect of not being able to run the tests
with fork = no. Once that's done, the non-error path will exercise and this last line of missed coverage will go away. ----- Original Message ----- From: "Jim Showalter" <jim@...> To: <cobertura-devel@...> Sent: Saturday, August 29, 2009 6:10 PM Subject: [Cobertura-devel] Line reported not covered by Cobertura but it'scovered > See the screenshot for the code and the coverage. > > The line in red can't be not executing, and both false and true, > because the output looks like: > > OUTPUT: false > Untested error code > com.jimandlisa.testutils.tests.TestException.FIRST_PROBLEM > OUTPUT: false > Untested error code > com.jimandlisa.testutils.tests.TestException.SECOND_PROBLEM > OUTPUT: false > Untested error code > com.jimandlisa.testutils.tests.TestException.THIRD_PROBLEM > OUTPUT: true > OUTPUT: true > OUTPUT: true > > When I look at it in the debugger, it's clearly taking the branch > sometimes and not others, depending on the value of the codeIsTested > flag. > > What am I missing? > > --------------------------------- > Jim Showalter > http://jimshowalter.blogspot.com > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july -------------------------------------------------------------------------------- > _______________________________________________ > Cobertura-devel mailing list > Cobertura-devel@... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Cobertura-devel mailing list Cobertura-devel@... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |
| Free embeddable forum powered by Nabble | Forum Help |