Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Testing a Dancer2 app with locally installed modules

by GertMT (Friar)
on Oct 28, 2020 at 14:02 UTC ( #11123259=note: print w/replies, xml ) Need Help??


in reply to Re^2: Testing a Dancer2 app with locally installed modules
in thread Testing a Dancer2 app with locally installed modules

Thank you Anonymous Monk!

Apparently the code in lib/jwsDancer.pm contained an error.

With the script as you suggested in bin/myprove.pl I got it to work changing the path slightly (erroneously it went up one directory too far).

use FindBin; chdir "$FindBin::Bin/.."; # jwsDancer/bin/.. system $^X, '-S', 'prove', "-I$FindBin::Bin/../lib", # jwsDancer/bin/../lib "-I$FindBin::Bin/../local/lib/perl5", # jwsDancer/bin/../local/lib/perl5 @ARGV;

All tests run smoothly with modules locally installed and a command like: perl bin/myprove.pl -lv t/*

Gert

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2021-10-16 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?