From: Robert Klemme Date: 2003-09-15T22:27:10+09:00 Subject: Re: Test::Unit -- multiple errors in test method ??? "Simon Strandgaard" schrieb im Newsbeitrag news:pan.2003.09.15.13.05.42.438830@sneakemail.com... > On Mon, 15 Sep 2003 22:08:22 +0900, Johan Holmberg wrote: > > > I have been writing some unit tests with Test::Unit. > > > > I've noted that when an assertion fails in a test method, the > > remaining assertions in the same test method aren't even excuted. > > Here is an example: > > > It is considered good practize only to *one* assertion per testcase, this > way you won't have any assertions which never gets executed. Did you mean to say "*one* assertion per test" (i.e. test method)? One assertion per test case (i.e. class) would be a bit lavish... But even if so: JUnit encourages the convention of one test per method, which typically leads to multiple assertions per test. > Even though I doesn't always follow that convention :-) Same here. Regards robert