Subject: | Doesn't skip tests during runtime |
Date: | Fri, 03 Dec 2010 18:50:31 +0100 |
To: | bug-Test-Aggregate [...] rt.cpan.org |
From: | Florian Ragwitz <rafl [...] debian.org> |
Given a test like
use Test::More;
plan skip_all => 'Reason'
if $ENV{SKIP_ME};
pass;
done_testing;
The test will be skipped without reaching the pass when run
normally. However, when running under Test::Aggregate, the pass will be
reached, even if SKIP_ME is set, because only skip_alls provided at
compile time are checked before running the test at all. Once the test
started running, plan skip_all won't have any effect unless
Test::Aggregate provides a modified sub plan that aborts the already
running test as one would expect.
Message body not shown because it is not plain text.