Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Test::Script debug execution via scripts_run

by Perlbotics (Archbishop)
on Apr 21, 2021 at 17:55 UTC ( [id://11131540]=note: print w/replies, xml ) Need Help??


in reply to Test::Script debug execution via scripts_run

If @$cmd is causing the problem, you should identify what's going on (see below). You could then try to invoke the program with the given arguments to dive into the problem (hopefully %ENV was not modified and the files used still exist!).
However, you could add

  • note "Now running '@$cmd'..."; and/or
  • ok(...) or diag "Getting from (@$cmd): stdout=... stderr=..."; (Diagnostics)
to narrow down the problem. Use i.e. prove -v ... which shows all note(...)'s.
You colud also add more logging to the modules/scripts under test (e.g Log::Log4perl).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-03-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found