Subject: | set_up and tear_down |
The set_up and tear_down methods must to be executed at start and at end
of all tests and no at the start and at the end of the suite :
Replace:
foreach my $unit (@{ $self->units }) {
$unit->set_up;
foreach my $test (@{ $unit->list_tests }) {
[...]
}
$unit->tear_down;
}
With:
foreach my $unit (@{ $self->units }) {
foreach my $test (@{ $unit->list_tests }) {
$unit->set_up;
[...]
$unit->tear_down;
}
}