Scott Guthridge via cpan-testers-discuss wrote on 6/23/17 12:54 AM:


Test script (mytest.t):

    use Test::More;

    [ test for NonExistentModule and exit cleanly before the use directive below
    is executed -- I see that a simple unconditional exit 0 at this point runs
    *after* the use below ]

    use ModuleUnderTest; # objective is not to blow up here



Maybe you want use_ok() ?

https://metacpan.org/pod/Test::More#use_ok

--
Peter Karman  .  https://karpet.github.io  .  https://keybase.io/peterkarman

Reply via email to