Just another Perl shrine | |
PerlMonks |
Re: How do track down underlying reason for smoke test failureby bliako (Monsignor) |
on Sep 12, 2019 at 10:35 UTC ( [id://11106055]=note: print w/replies, xml ) | Need Help?? |
I have managed to reproduce the problem (Perl 5.26.2, fedora linux) when I omitted ./ from INC dir - as Test::Classifier requires t::TestMods::Test::Processor :
This works fine on my system:
Could it be that some of the modules in t/TestMods do not load correctly under certain circumstances? A comment on your code if I may (File-Collector-0.037 / lib / File / Collector.pm):
Adding a check on eval will tell you if requireed class was not found or failed to load. e.g. from eval, e.g. eval "xyz"; die $@ if $@; I make this comment because the test fails when constructor sets @classes to contain Test::Classifier. Does this module load OK? Same goes for AUTOLOAD in said file:
You may want to check whether $obj materialised before returning instead of relying on caller checking if got undef. bw, bliako
In Section
Seekers of Perl Wisdom
|
|