[Perlunit-users] How to exit from test suite?
Status: Beta
Brought to you by:
mca1001
|
From: Dmitry D. <dd...@ic...> - 2003-10-04 09:16:19
|
Hi All!
If one of my tests fail, other tests should not be executed. In order to
stop execution, I use the following code:
sub test_001_load {
my $self = shift;
if ($loaded_nok) {
$self->fail("Unrecoverable error, can't continue.");
exit;
}
}
Is it a proper way? Is there any $suite->stop method?
--
Dmitry.
|