[Catalyst-dev] Catalyst test suite

Yuri Shtil yuris at juniper.net
Tue May 6 17:13:27 BST 2008


Got it  never mind.

Yuri Shtil wrote:
> Can you send me the command to fetch the source from the repository?
>
> Andy Grundman wrote:
>> I just tried it with 5.7 trunk and it worked fine for me.
>>
>> On May 6, 2008, at 11:23 AM, Yuri Shtil wrote:
>>
>>> Hi Andy,
>>> I was trying to run  t/optional_http-server.t. as you advised and got:
>>>
>>> Couldn't load plugin 
>>> "Catalyst::Plugin::+TestApp::Plugin::FullyQualified
>>>
>>> What is this plus?
>>>
>>> Andy Grundman wrote:
>>>>
>>>> On May 5, 2008, at 7:48 PM, Yuri Shtil wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am contemplating to write a new Catalyst::Engine subclass. A 
>>>>> looked at the test suite of an existing module ( 
>>>>> Catalyst::Engine::HTTP::POE) and discovered a lot of *.pm and 
>>>>> testapp_poe.pl. I could not run it since some modules were missing 
>>>>> (like  +TestApp::Plugin::FullyQualified).
>>>>>
>>>>> The POD also referred to this module passing "the Catalyst test 
>>>>> suite".
>>>>>
>>>>> Am I missing something needed to develop and test 
>>>>> Catalyst::Engine? How do I get and use the test suite?
>>>>
>>>> Hi,
>>>>
>>>> The Catalyst test suite for engines consists of the t/live_* 
>>>> files.  There are several ways to run these tests against your engine.
>>>>
>>>> If your engine can be scripted to run automatically, you can write 
>>>> a wrapper script that launches the engine and runs all the tests 
>>>> against it.  For an example of this see t/optional_http-server.t.
>>>>
>>>> You can manually run tests against your engine by setting the 
>>>> CATALYST_SERVER env var to the URI where your engine is running.  
>>>> Then any Catalyst tests you run will run against that host.  This 
>>>> is very helpful for debugging a single failing test.  Note that 
>>>> your engine must be running the TestApp, which just means you need 
>>>> to copy t/lib/* into an app.
>>>>
>>>> -Andy
>>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Catalyst-dev mailing list
>> Catalyst-dev at lists.scsys.co.uk
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev



More information about the Catalyst-dev mailing list