Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Test::Script debug execution via scripts_run

by Perlbotics (Bishop)
on Apr 21, 2021 at 17:55 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-05-22 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?