Subject: | Test suite fails without Test::Exception |
If Test::Exception is not installed, then the test suite fails like this:
...
You tried to plan twice at t/annulus.t line 10.
BEGIN failed--compilation aborted at t/annulus.t line 11.
# Looks like your test exited with 2 before it could output anything.
t/annulus.t .........................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 6/6 subtests
...
I think the problem is that there was a plan defined first (in the "use Test::More ..." line) and then another plan (in the "plan skip_all ..." line). The fix is to use a plain "use Test::More;", and define the plan after the "plan skip_all ..." line using "plan tests => 6;".