sure! I did a "DummyTest" as described here: http://usingzendframework.blogspot.com/2007/12/setting-up-phpunit.htmlinstead of running it through the zend framework configuration (so it's just loading one file instead of actually bootstrapping my whole application) and the run time again was 47 seconds: PHPUnit 3.4.12 by Sebastian Bergmann.
F Time: 47 seconds, Memory: 5.50Mb There was 1 failure: 1) DummyTest::testFail Your test successfully failed! C:\projects\playhouse\tests\DummyTest.php:7 ←[37;41m←[2KFAILURES! ←[0m←[37;41m←[2KTests: 1, Assertions: 0, Failures: 1. ←[0m←[2K On Fri, May 7, 2010 at 2:16 AM, Hector Virgen <[email protected]> wrote: > Can you paste your tests? It shouldn't take that long for 3 tests. > > -- > Hector > > > > On Thu, May 6, 2010 at 4:53 PM, Brian Caspe <[email protected]> wrote: > >> 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 >> > > -- +420 608 577 012 Prague Playhouse www.pragueplayhouse.com
