|
Re: distinguishing between failures and errors: msg#00110java.junit.user
I do not really care about whether or not I have a failure or an error. I know I have a bug, and I have to solve it. That's the only thing that matters to me. Please bear in mind that I am programming alone, with test-first. If I were shown value in distinguishing between both of them, then maybe I would switch. But in the mean time, I will continue to treat everything as a failure. Thanks ! Francois Beausoleil --- pholser <pholser@xxxxxxxxx> a écrit : > <jbr> > > One could argue that throwing the wrong exception type is a > > failure and not an error, but since it's impossible to distinguish > > between simply throwing the wrong exception type and something > > going horribly wrong, it is easiest to treat them both as errors. > </jbr> > > i think it depends on the exception. if a method has advertised > an exception in its throws clause, a caller can anticipate that it > could happen, catch it, and call the outcome a failure. any other > "unanticipated" exception would then be an error. but in practice, > it probably doesn't matter whether the throwing of the wrong > "advertised" exception should signal failure or error. > > i was trying to use the exception example as a starting point for > discussion about whether failure/error distinctions in junit are > meaningful to anyone. my experience has been that they are not-- > in either case, failure or error, you're led in the direction of a > solution. what do you all think? > > this, too, the failure/error distinction and whether it matters, may > be a good FAQ item too? > > thanks in advance for the enlightenment. > > cheers, > p > > > > To unsubscribe from this group, send an email to: > junit-unsubscribe@xxxxxxxxxxxxxxx > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > __________________________________________________________ Lèche-vitrine ou lèche-écran ? magasinage.yahoo.ca
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | distinguishing between failures and errors, pholser |
|---|---|
| Next by Date: | Re: distinguishing between failures and errors, J. B. Rainsberger |
| Previous by Thread: | distinguishing between failures and errors, pholser |
| Next by Thread: | Re: distinguishing between failures and errors, J. B. Rainsberger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |