librelist archives

« back to archive

installed_apps non obvious usage

installed_apps non obvious usage

From:
Loic d'Anterroches
Date:
2012-01-19 @ 21:23
Hello,

the current 'installed_apps' key in the configuration is only to find
the applications to be tested. That is, it is just used to find possible
'tests' folders or 'tests.php' files in the PHP include path.

It is used just for that and nothing else. So, maybe we should renamed
the key with something less confusing. I was thinking:

'tested_components' => array('yourcompany/component',
                             'photon', 'ceondo/privatestuff');

basically, it is then taking the folders in the include path, appending
the tested_components paths, checking if in it a 'tests' folder or a
'tests.php' file is available. If so, it is adding the files in the
folders or the tests.php file to the list of test files.

I do think it makes things a bit clearer, it also shows that a component
is basically just a collection of files in the include path.

What do you think?

loïc

--
Indefero - Project management and code hosting - http://www.indefero.net
Photon - High Performance PHP Framework - http://photon-project.com
Céondo Ltd - Web + Science = Fun - http://www.ceondo.com

Re: [photon.users] installed_apps non obvious usage

From:
William Martin
Date:
2012-01-21 @ 09:14
Hi Loic,

I am for a rename of this configuration key because the name isn't use
for what its mean.

William

On Thu, Jan 19, 2012 at 10:23 PM, Loic d'Anterroches <loic@ceondo.com> wrote:
> Hello,
>
> the current 'installed_apps' key in the configuration is only to find
> the applications to be tested. That is, it is just used to find possible
> 'tests' folders or 'tests.php' files in the PHP include path.
>
> It is used just for that and nothing else. So, maybe we should renamed
> the key with something less confusing. I was thinking:
>
> 'tested_components' => array('yourcompany/component',
>                             'photon', 'ceondo/privatestuff');
>
> basically, it is then taking the folders in the include path, appending
> the tested_components paths, checking if in it a 'tests' folder or a
> 'tests.php' file is available. If so, it is adding the files in the
> folders or the tests.php file to the list of test files.
>
> I do think it makes things a bit clearer, it also shows that a component
> is basically just a collection of files in the include path.
>
> What do you think?
>
> loïc
>
> --
> Indefero - Project management and code hosting - http://www.indefero.net
> Photon - High Performance PHP Framework - http://photon-project.com
> Céondo Ltd - Web + Science = Fun - http://www.ceondo.com



-- 
---------------------------------------------------------
William MARTIN
wysman @NoSpAm@ gmail @DoT@ com