Skip Menu |

This queue is for tickets about the Apache-Test CPAN distribution.

Report information
The Basics
Id: 21994
Status: resolved
Priority: 0/
Queue: Apache-Test

People
Owner: Nobody in particular
Requestors: WMCKEE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.28
Fixed in: (no value)



Subject: Mixing Perl & PHP Testing
While trying to add PHP tests to my A::T framework for a recent project, I discovered that it's not possible to have both Apache::TestRunPerl and Apache::TestRunPHP in my t/TEST script. Actually it's possible to include both but only one of the new_test_config() methods will get executed which means that only Perl or PHP response tests will be generated. I could not find any documentation about using these test libraries in conjunction with each other. I suppose part of the solution is to build response tests manually for one or the other test library instead of relying on the config process to autogenerate them. Is there anything else I need to do to successfully mix Perl and PHP testing? Thanks, William
On Tue Oct 10 07:11:50 2006, WMCKEE wrote: Show quoted text
> While trying to add PHP tests to my A::T framework for a recent project, > I discovered that it's not possible to have both Apache::TestRunPerl and > Apache::TestRunPHP in my t/TEST script. Actually it's possible to > include both but only one of the new_test_config() methods will get > executed which means that only Perl or PHP response tests will be
generated. Show quoted text
>
yeah, currently this is a limitation of Apache-Test, and not just for perl and php - you need to choose _one_ of TestRun, TestRunPerl, TestRunPHP, TestRunParrot, etc in your makefile. Show quoted text
> I could not find any documentation about using these test libraries in > conjunction with each other. I suppose part of the solution is to build > response tests manually for one or the other test library instead of > relying on the config process to autogenerate them. Is there anything > else I need to do to successfully mix Perl and PHP testing?
if it were me I'd probably create two different directory structures perl-tests/Makefile.PL perl-tests/t php-test/Makefile.PL perl-tests/t and iterate through them both for 'make test'. as an example, see the Makefile.PL for mod_perl, which runs tests in t/ and ModPerl-Registry/t HTH