note
ELISHEVA
<p>I had been already to break out the Champagne when I cleaned out everything and rebuilt from scratch. Once again, even with all the tests in <c>tests</c> rather than <c>t</c>, I saw the same behavior. <c>test.pl</c> runs fine when it runs directly on the command line <c>perl ./test.pl</c>. TAP gets swallowed when test.pl is executed by <c>make test</c>.</p>
<p>Clearly whatever is causing this on-again off-again TAP swallowing is not merely about the name of the test directory. In fact it seems to have nothing to do with it. You can get <c>make test</c> to work with the files in <c>t</c> or in <c>test</c>. The only factor that seems to make a difference is the "test" key:</p>
<code>
# this creates a broken Makefile
WriteMakefile
(
'INSTALLDIRS' => 'site',
, 'NAME' => MyModule::Foo
, 'VERSION' => 0.999_003
, 'PREREQ_PM' => { 'Fiddle::Faddle' => 0 }
, 'test' => { TESTS => 'test.pl' }
);
# this does not (test key removed)
WriteMakefile
(
'INSTALLDIRS' => 'site',
, 'NAME' => MyModule::Foo
, 'VERSION' => 0.999_003
, 'PREREQ_PM' => { 'Fiddle::Faddle' => 0 }
);
</code>
<p>I'm not going to be entirely comfortable until I understand why this makes a difference. Just as yours and my empirical observations about <c>t</c> vs. <c>tests</c> turned out to be unlikely, so too could my empirical observations about the 'test' key.</p>
<p>It does however look like we are well on our way, without having to reinvent the wheel.</p>
<p>As for "you could have asked" :-).... don't underestimate your role in causing me to revisit an option I'd rejected. By believing it could be done and even offering to look at a reduced code sample, you convinced me that I might have given up too quickly. You all but invited me to ask for help - and you are correct that I did not explicitly do so - it isn't easy for me - I tend to believe I have to take care of myself at all times. However, had you not issued that quasi-invitation, I would not have told you the story of why I gave up and perhaps you would not have offered evidence that my original intent to call runtests could work if things outside my test.pl code were set up properly.</p>
<p>Thanks again for your help. You do honor to the name "Anonymous Monk".</p>
888753
888881