rafl/test-tempdir — pull request #1 by glasswalk3r (2014-07-24 21:42:28+00:00)
Title: Found some issues with distribution tests

Greetings,

Sorry for creating a pull request when in fact I would like to report what seems to be a bug. :-)

During tests execution of version 0.08, I found several issues running the following test:

[foobar@foobar Test-TempDir-0.08]$ prove -v -m
t/00-check-deps.t ......
ok 1 - ExtUtils::MakeMaker satisfies '6.30'
ok 2 - ExtUtils::MakeMaker satisfies '0'
ok 3 - File::Path satisfies '2.04'
ok 4 - File::Spec satisfies '0'
ok 5 - File::Spec::Functions satisfies '0'
ok 6 - IO::Handle satisfies '0'
ok 7 - IPC::Open3 satisfies '0'
ok 8 - List::Util satisfies '0'
ok 9 - Test::CheckDeps satisfies '0.007'
ok 10 - Test::More satisfies '0.94'
ok 11 - Test::Requires satisfies '0'
not ok 12 - ok satisfies '0'

# Failed test 'ok satisfies '0''
# at t/00-check-deps.t line 9.
# Module 'ok' is not installed
ok 13 - Carp satisfies '0'
ok 14 - File::NFSLock satisfies '0'
ok 15 - File::Spec satisfies '0'
ok 16 - File::Temp satisfies '0'
ok 17 - Moose satisfies '0'
ok 18 - Moose::Util::TypeConstraints satisfies '0'
ok 19 - MooseX::Types::Path::Class satisfies '0'
ok 20 - Path::Class satisfies '0'
ok 21 - Sub::Exporter satisfies '0'
ok 22 - Test::Builder satisfies '0'
ok 23 - namespace::autoclean satisfies '0.08'
ok 24 - strict satisfies '0'
ok 25 - warnings satisfies '0'
not ok 26 - Directory::Scratch satisfies '0' # TODO recommends are not mandatory

# Failed (TODO) test 'Directory::Scratch satisfies '0''
# at t/00-check-deps.t line 9.
# Module 'Directory::Scratch' is not installed
Bailout called. Further testing stopped: Missing dependencies
Bail out! Missing dependencies
FAILED--Further testing stopped: Missing dependencies
[foobar@foobar Test-TempDir-0.08]$ grep 'Directory::Scratch' Makefile.PL
[foobar@foobar Test-TempDir-0.08]$

It seems that the test was created automatically by Dist::Zilla::Plugin::Test::CheckDeps. I was trying to install the module following the default sequence:

perl Makefile.PL
make
make test
make install

So I'm not sure if I running tests the wrong way because I'm not acquainted with Dist::Zilla. The thing is, the mentioned tests requests modules to be installed that are not in the Makefile.PL.

Those requirements are missing in Makefile.PL or the tests has a bug. I cannot tell you which one should be fixed.

Regards,

Alceu