The database connection is done in application.ini... should I overwrite it
for [testing : production]?
resources.db[] = or somethign like that?

I'm just running 2 or 3 tests, so it's something in the way that phpunit
runs. I should probably test phpunit with a straightforward test instead of
trying to bootstrap the application to make sure that it runs quickly.

Brian


On Fri, May 7, 2010 at 1:13 AM, Hector Virgen <[email protected]> wrote:

> Do your unit tests set up a database connection? That's usually one of the
> things that can slow down tests.
>
> Also, how many tests are you running? Are certain tests faster than others?
>
> --
> Hector
>
>
>
> On Thu, May 6, 2010 at 3:59 PM, Brian Caspe <[email protected]> wrote:
>
>> Hi,
>>
>> I've just set up PHPUnit on my project ala
>> http://www.zendcasts.com/unit-testing-with-the-zend-framework-with-zend_test-and-phpunit/2009/06/.
>> Things seem to be working in that it will run tests, but the run time is
>> like 49 seconds (10 mb). This seems like it's terribly long to me.. Is there
>> a way to see what is taking so long? I googled for the answer but couldn't
>> find anything. It seems to me that there is some simple thing that I missed
>> in setting up either my application files, bootstrap or the phpunit
>> testcase. Any help would be appreciated!
>>
>> Brian
>>
>> --
>> +420 608 577 012
>>
>> Prague Playhouse
>> www.pragueplayhouse.com
>>
>
>


-- 
+420 608 577 012

Prague Playhouse
www.pragueplayhouse.com



-- 
+420 608 577 012

Prague Playhouse
www.pragueplayhouse.com

Reply via email to