Interactive debugging in Mojolicious tests

83 views
Skip to first unread message

Daniel Mantovani

unread,
Jan 22, 2015, 6:31:31 PM1/22/15
to mojol...@googlegroups.com

I wonder if there is a recommended way to run Mojolicious tests  under perl debugger.

Actually I saw that if you write a Makefile.PL with Exutils::MakeMaker and then

perl Makefile.PL
make

you will be able to run Mojo tests under perl debugger like this:

make testdb TEST_FILE=t/mytest.t


(explained at https://metacpan.org/pod/release/BINGOS/ExtUtils-MakeMaker-7.04/lib/ExtUtils/MakeMaker.pm#make-testdb)

That works, but I guess it should be a better way, probably without the need to write a Makefile.

Any comments / thoughts will be appreciated.
BR,
Daniel


Jan Henning Thorsen

unread,
Jan 30, 2015, 7:40:01 AM1/30/15
to mojol...@googlegroups.com
Most tests are plain perl scripts, so you should be able to just do

    perl -d t/mytest.t
Reply all
Reply to author
Forward
0 new messages