From: Daniel D. <bri...@gm...> - 2008-11-17 23:36:42
|
At present, assertions count as two branches in the coverage report. Assertions aren't meant to fail if the code is correct, so it's pretty much impossible to get coverage for both branches. I would like to make a change so that assertions are considered covered if they are executed without raising an AssertionError. I raised an issue about this a while ago: http://sourceforge.net/tracker/index.php?func=detail&aid=1762599&group_id=130558&atid=720015 I also noticed that somebody else had a similar suggestion: http://sourceforge.net/tracker/index.php?func=detail&aid=1959691&group_id=130558&atid=720018 If I make a patch for this, will it be accepted, or is there a reason why assertions should continue to be treated just like if statements? Thanks, Dan. -- Daniel Dyer |