Thanks for pointing that out. I use FindBin from time to time, mostly when i write code that others will be using. In this case, i always run my tests like so: (from the DesignPatterns-Perl dir)

prove -lrj4 

Additionally, make test works "right out of the box":

~/DesignPatterns-Perl$ pwd; git status; perl Makefile.PL; make; make test; make veryclean; git status
/home/user/DesignPatterns-Perl
# On branch master
nothing to commit (working directory clean)
Writing Makefile for OODP
Writing MYMETA.yml and MYMETA.json
cp lib/OODP/TOC/Behavioral.pm blib/lib/OODP/TOC/Behavioral.pm
cp lib/OODP/AbstractFactory.pm blib/lib/OODP/AbstractFactory.pm
cp lib/OODP/Leaf.pm blib/lib/OODP/Leaf.pm
cp lib/OODP/TOC/Visitor.pm blib/lib/OODP/TOC/Visitor.pm
cp lib/OODP/Subject.pm blib/lib/OODP/Subject.pm
cp lib/OODP/AbstractWidget.pm blib/lib/OODP/AbstractWidget.pm
cp lib/OODP/TOC/Structural.pm blib/lib/OODP/TOC/Structural.pm
cp lib/OODP/TOC/Flyweight.pm blib/lib/OODP/TOC/Flyweight.pm
cp lib/OODP/TOC/Builder.pm blib/lib/OODP/TOC/Builder.pm
cp lib/OODP/TOC/Decorator.pm blib/lib/OODP/TOC/Decorator.pm
cp lib/OODP/TOC/Bridge.pm blib/lib/OODP/TOC/Bridge.pm
cp lib/OODP/TOC/Composite.pm blib/lib/OODP/TOC/Composite.pm
cp lib/OODP/Composite.pm blib/lib/OODP/Composite.pm
cp lib/OODP/TOC/Singleton.pm blib/lib/OODP/TOC/Singleton.pm
cp lib/OODP/TOC/Memento.pm blib/lib/OODP/TOC/Memento.pm
cp lib/OODP/Strategy.pm blib/lib/OODP/Strategy.pm
cp lib/OODP/TOC/Adapter.pm blib/lib/OODP/TOC/Adapter.pm
cp lib/OODP/TOC.pm blib/lib/OODP/TOC.pm
cp lib/OODP/TOC/Command.pm blib/lib/OODP/TOC/Command.pm
cp lib/OODP/TOC/Facade.pm blib/lib/OODP/TOC/Facade.pm
cp lib/OODP/TOC/FactoryMethod.pm blib/lib/OODP/TOC/FactoryMethod.pm
cp lib/OODP/Observer.pm blib/lib/OODP/Observer.pm
cp lib/OODP/TOC/Mediator.pm blib/lib/OODP/TOC/Mediator.pm
cp lib/OODP/Context.pm blib/lib/OODP/Context.pm
cp lib/OODP/TOC/Prototype.pm blib/lib/OODP/TOC/Prototype.pm
cp lib/OODP/Decorator.pm blib/lib/OODP/Decorator.pm
cp lib/OODP/TOC/Proxy.pm blib/lib/OODP/TOC/Proxy.pm
cp lib/OODP/TOC/Observer.pm blib/lib/OODP/TOC/Observer.pm
cp lib/OODP/TOC/ChainOfResponsibility.pm blib/lib/OODP/TOC/ChainOfResponsibility.pm
cp lib/OODP/TOC/Strategy.pm blib/lib/OODP/TOC/Strategy.pm
cp lib/OODP/Component.pm blib/lib/OODP/Component.pm
cp lib/OODP/AbstractClass.pm blib/lib/OODP/AbstractClass.pm
cp lib/OODP/TOC/Iterator.pm blib/lib/OODP/TOC/Iterator.pm
cp lib/OODP/TOC/State.pm blib/lib/OODP/TOC/State.pm
cp lib/OODP/TOC/AbstractFactory.pm blib/lib/OODP/TOC/AbstractFactory.pm
cp lib/OODP/TOC/TemplateMethod.pm blib/lib/OODP/TOC/TemplateMethod.pm
cp lib/OODP/TOC/Creational.pm blib/lib/OODP/TOC/Creational.pm
cp lib/OODP/TOC/Interpreter.pm blib/lib/OODP/TOC/Interpreter.pm
Manifying blib/man3/OODP::TOC::Behavioral.3pm
Manifying blib/man3/OODP::AbstractFactory.3pm
Manifying blib/man3/OODP::Leaf.3pm
Manifying blib/man3/OODP::TOC::Visitor.3pm
Manifying blib/man3/OODP::Subject.3pm
Manifying blib/man3/OODP::AbstractWidget.3pm
Manifying blib/man3/OODP::TOC::Structural.3pm
Manifying blib/man3/OODP::TOC::Flyweight.3pm
Manifying blib/man3/OODP::TOC::Builder.3pm
Manifying blib/man3/OODP::TOC::Decorator.3pm
Manifying blib/man3/OODP::TOC::Bridge.3pm
Manifying blib/man3/OODP::TOC::Composite.3pm
Manifying blib/man3/OODP::Composite.3pm
Manifying blib/man3/OODP::TOC::Singleton.3pm
Manifying blib/man3/OODP::TOC::Memento.3pm
Manifying blib/man3/OODP::Strategy.3pm
Manifying blib/man3/OODP::TOC::Adapter.3pm
Manifying blib/man3/OODP::TOC.3pm
Manifying blib/man3/OODP::TOC::Command.3pm
Manifying blib/man3/OODP::TOC::Facade.3pm
Manifying blib/man3/OODP::TOC::FactoryMethod.3pm
Manifying blib/man3/OODP::Observer.3pm
Manifying blib/man3/OODP::TOC::Mediator.3pm
Manifying blib/man3/OODP::Context.3pm
Manifying blib/man3/OODP::TOC::Prototype.3pm
Manifying blib/man3/OODP::Decorator.3pm
Manifying blib/man3/OODP::TOC::Proxy.3pm
Manifying blib/man3/OODP::TOC::Observer.3pm
Manifying blib/man3/OODP::TOC::ChainOfResponsibility.3pm
Manifying blib/man3/OODP::TOC::Strategy.3pm
Manifying blib/man3/OODP::Component.3pm
Manifying blib/man3/OODP::AbstractClass.3pm
Manifying blib/man3/OODP::TOC::Iterator.3pm
Manifying blib/man3/OODP::TOC::State.3pm
Manifying blib/man3/OODP::TOC::AbstractFactory.3pm
Manifying blib/man3/OODP::TOC::TemplateMethod.3pm
Manifying blib/man3/OODP::TOC::Creational.3pm
Manifying blib/man3/OODP::TOC::Interpreter.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/000-toc.t ............... ok    
t/001-abstract-factory.t .. ok   
t/008-composite.t ......... ok     
t/009-decorator.t ......... ok     
t/019-observer.t .......... ok     
t/021-strategy.t .......... ok     
t/022-template-method.t ... ok   
t/101-abstract-factory.t .. ok     
t/108-composite.t ......... ok     
t/109-decorator.t ......... ok     
t/119-observer.t .......... ok     
t/121-strategy.t .......... ok     
t/122-template-method.t ... ok   
t/boilerplate.t ........... ok   
t/pod-coverage.t .......... ok     
t/pod.t ................... ok     
All tests successful.

Test Summary Report
-------------------
t/boilerplate.t         (Wstat: 0 Tests: 6 Failed: 0)
  TODO passed:   1-6
Files=16, Tests=299,  5 wallclock secs ( 0.09 usr  0.06 sys +  4.13 cusr  0.25 csys =  4.53 CPU)
Result: PASS
rm -f \
	  *.a core \
	  core.0-9 blib/arch/auto/OODP/extralibs.all \
	  core.0-90-9 OODP.bso \
	  pm_to_blib.ts MYMETA.json \
	  core.0-90-90-90-9 MYMETA.yml \
	  OODP.x  \
	  perl tmon.out \
	  *.o pm_to_blib \
	  blib/arch/auto/OODP/extralibs.ld blibdirs.ts \
	  core.0-90-90-90-90-9 *perl.core \
	  core.*perl.*.? Makefile.aperl \
	  OODP.def perl \
	  core.0-90-90-9 mon.out \
	  libOODP.def perlmain.c \
	  perl.exe so_locations \
	  OODP.exp 
rm -rf \
	  OODP-* blib 
mv Makefile Makefile.old > /dev/null 2>&1
rm -f \
	  Makefile.old Makefile 
rm -rf \
	  OODP-0.01 
rm -f *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old 
# On branch master
nothing to commit (working directory clean)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to Re^4: Including modules exclusively for testing with ExtUtils::MakeMaker by jeffa
in thread Including modules exclusively for testing with ExtUtils::MakeMaker by lackita

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.