in reply to Re: Unit test of script fails unless Test::Warnings is used‽
in thread Unit test of script fails unless Test::Warnings is used?!
I use Test::Exception all over this test suite. In fact, it was one of the use lines I deleted. :-)
Using it for the require test hadn't occurred to me, though. I'll switch to that. Thanks. Edit: How would I replicate the OP's BAIL_OUT semantics when using lives_ok?
Edit: Either you edited your reply, or I didn't see you answering the bit about why the test failed unless Test::Warnings was included. That makes perfect sense.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unit test of script fails unless Test::Warnings is used?!
by Your Mother (Archbishop) on Oct 13, 2019 at 01:28 UTC | |
|
Re^3: Unit test of script fails unless Test::Warnings is used?!
by 1nickt (Canon) on Oct 13, 2019 at 01:35 UTC | |
|
Re^3: Unit test of script fails unless Test::Warnings is used?!
by 1nickt (Canon) on Oct 13, 2019 at 01:27 UTC |