Re: CVS update: /cowiki/misc/development/tests/

PAUL HANCHETT <[email protected]> Sat, 07 May 2005 19:48:51 -0700
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
Daniel--

I don't agree that include.path should be used for tests.  However, it 
can be self-adapting by using 
dirname(__FILE__)."../../includes/cowiki/".  (I'm not sure I got enough 
"../" in there.)

The principle is that the test should not be dependent on the system it 
is testing in any way, except for what is explicitly being tested.

Paul


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]
>
>  
>