[pkg-php-pear] Running tests at build time, and installed via DEP-8 (was: phpunit comments)
math.parent at gmail.com
Sun Feb 9 07:41:25 UTC 2014
2014/2/9 David Prévot <david at tilapin.org>:
> FYI, php-opencloud 1.9.2-1 (just uploaded to experimental) now runs its
> test suite at build time  and can be tested once installed (à la
> DEP-8)  (it seems to be the first DEP-8 compliant PHP package ,
> 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  (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:
However, I'm currently too busy (and don't maintain any composer
package) to add this feature soon.
More information about the pkg-php-pear