Subject: | Problem loading file from Sharedir |
Hello
In my module I have some munged data serialized under a sharedir folder. In the BEGIN block I do something like:
our $sharedir = dist_dir('Lingua-Identifier');
our $features = do( catfile($sharedir, "features.dmp"));
My test is generated by dzil as:
use Test::Pod::Coverage 1.08;
use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
But the tests fail with:
xt/release/pod-coverage.t .. 1/4
# Failed test 'Pod coverage on Lingua::Identifier'
# at /opt/perl/lib/site_perl/5.20.0/Test/Pod/Coverage.pm line 133.
# Lingua::Identifier: Couldn't compile 'Lingua::Identifier' to inspect: Lingua::Identifier- could not load 'features.dmp' at /Users/ambs/Natura/main/Lingua/Lingua-Identifier/.build...
Probably the tests are not being run including blib, but lib instead?
Cheers
Alberto