[pkg-php-pear] Running tests at build time, and installed via DEP-8 (was: phpunit comments)

Mathieu Parent math.parent at gmail.com
Sun Feb 9 07:41:25 UTC 2014


2014/2/9 David Prévot <david at tilapin.org>:
> Hi,

Hello David,

[...]
> FYI, php-opencloud 1.9.2-1 (just uploaded to experimental) now runs its
> test suite at build time [1] and can be tested once installed (à la
> DEP-8) [2] (it seems to be the first DEP-8 compliant PHP package [3],
> it’s also my first attempt to run a test suite at build time and DEP-8
> compliance, so any comment is welcome).

This is a great news.

One question: Does "pear run-tests" behave like the "phpunit" you use?
(and exit with !=0 if there is a failure).

We can add buildtime check to pkg-php-tools but we should ensure that
there is a guessable command to run.

[...]
> Side note: I had to mimic the Composer autoload feature [4] (via
> ClassLoader from Symfony), no idea if pkg-php-tools could be improved to
> create an autoload file, nor if php-composer could help (maybe andrea
> would know).
I thought that there were no good way to have the Composer autoload
systemwide, untill I read this message:

http://lists.kolab.org/pipermail/devel/2014-February/014896.html

However, I'm currently too busy (and don't maintain any composer
package) to add this feature soon.


[...]

Cheers,
-- 
Mathieu



More information about the pkg-php-pear mailing list