* Gabor Szabo <[EMAIL PROTECTED]> [2007-07-24 08:45]: > That is, there is a phase where I setup the test environment > and then there is the actual test. Obviously each phase can > consists of several ok() functions.
Right. The setup phase is called the “fixture” in testing lingo and it should not be a test. If the fixture setup fails, it makes no sense to try to continue and execute any further tests, as they’ll all break anyway. So you do the setup prior to any tests and `die` if any of it fails. > I would like to be able to display them in a different way. If you `die`, the harness will report it differently. * David Golden <[EMAIL PROTECTED]> [2007-07-25 04:40]: > Or use a SKIP block. Not in this case. SKIP will continue silently without registering a failure, but this is an issue of setup failure for non-optional tests, for which you want a loud complaint. The right approach is `die`. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>