Re: CVS update: /cowiki/misc/development/tests/
PAUL HANCHETT <[email protected]> Sun, 08 May 2005 20:58:06 -0700
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
Archie-- I'm having trouble running your tests. I think this should be done so it is in dependent on Daniel's include.path file. I'll look at it tomorrow and see if I can't make a contribution... Paul Archie Campbell wrote: > Ok. I've altered setup.php to mung the include_path paths so that they > work from misc/development/tests, which *is* where the tests have been > envisaged to run from. > > PHPUnit should be somewhere in your php.ini's include_path. That'll be > an absolute path and one that remains untouched by the core of coWiki, > which happily overwrites the ini setting as it doesn't need the PEAR > classes. > > For testing, > > #cd /cowiki/misc/development/tests > #php RunTests.php > > ought to work. > > Regards, > > Archie > > Daniel T. Gorski wrote: > >>On 07 May 17:10, [email protected] wrote: >> >> >> >>> //-------------------------------------------------------- >>> // This line has to be set because the test code is >>> // not presently in the coWiki directory structure. >>> //-------------------------------------------------------- >>> $base_path = "/code/src/cowiki/cowiki/includes/cowiki/"; >>> >>> >> >>htdocs/include.path contains the include paths (htdocs/index.php and >>htdocs/admin.php read the paths from that file too). The line above should >>load dynamic values. Also should be the location of PHPUnit dynamic and/or >>changeable without touching the code of the tests themselves. >> >>regards dtg >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [email protected] >>For additional commands, e-mail: [email protected] >> >> >> >> >>