[Catalyst] reducing app startup time in tests
Richard Jolly
Richard.Jolly at bbc.co.uk
Wed Jul 12 18:36:42 CEST 2006
catalyst-bounces at lists.rawmode.org wrote:
> On 12 Jul 2006, at 13:55, Richard Jolly wrote:
>> Hi,
>>
>> We have a fair number of tests using
> Test::WWW::Mechanize::Catalyst.
>> The startup time in these is slow enough (approx 20 seconds) that it
>> is inconvenient for development, because our total test run is
>> almost 1 hr.
>>
>> Most of these tests have identical setup actions, and do not alter
>> the db they run against.
>>
>> The hardware is sub par, which is one obvious way to address this.
>> Another would be to start a server and run the tests against that.
>> Are there others? Something clever like using Storable to freeze the
>> initialized Catalyst app to disk, and have the test setup simply
>> retrieve it?
> Wouldn't it be easier simply to have a copy of the test
> server fired up at the beginning of a test run and then use
> the CATALYST_SERVER environment variable to make
> Catalyst::Test (and hence TWM::C) run against this rather
> than an embedded copy?
That is the method we will go with.
Thanks, Richard
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the Catalyst
mailing list