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

Re: Reload a Catalyst application during testing

by talexb (Canon)
on May 10, 2019 at 12:04 UTC ( #1233561=note: print w/replies, xml ) Need Help??


in reply to Reload a Catalyst application during testing

Can't you just use two separate scopes?

{ { my $mech = Test::WWW::Mechanize::Catalyst->new( catalyst_app => "CoolCatalystApp" ); run_tests( $mech ); } change_config(); { my $mech = Test::WWW::Mechanize::Catalyst->new( catalyst_app => "CoolCatalystApp" ); run_tests( $mech ); } }
Once the app goes out of scope, it doesn't exist any more.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: Reload a Catalyst application during testing
by Anonymous Monk on May 15, 2019 at 12:58 UTC

    Doh. Thank you, sometimes the most obvious answer is staring you in the face!

    - gwg (not logged in)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2019-07-24 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?