Proposal for "PEAR_TestListener"

» Metadata » Status
» Description
After two major versions, proposed as draft directly on the PEAR-dev mailing list, I think it's time to promote officially the new version 0.3.0

Goals of PEAR_TestListener :

1. allow to run all PEAR packages test suites, and also other ones, directly through the PHP CLI interpreter and keep all features of command phpunit with its switches

2. Logs all events during test suite (start/end test suite, start/end test, failure or error occured) to any target provided by the PEAR::Log package.

3. Logs also any additionnal events/informations through a customizable TestListener interface, either with Event_Dispatcher or SplSubject/SplObserver interface

4. Choose between PHP code implementation or using XML configuration file phpunit.xml

Learn more :

- how to install / setup : make your changes in an existing test suite (only 2 lines)
- all source codes highlighted with Geshi
- many examples

All those stuff are available at http://www.laurent-laville.org/pear/pepr/PEAR_TestListener/
» Dependencies » Links
  • PHP 5
  • PHPUnit 3.3.0+
  • Log 1.11.0+
  • Event_Dispatcher 1.0.0
» Timeline » Changelog
  • First Draft: 2009-06-08
  • Proposal: 2009-06-08
  • Call for Votes: 2009-06-30
  • Voting Extended: 2009-07-20
  • Laurent Laville
    [2009-06-10 21:47 UTC]

    version 0.3.0a3

    - add changelog (appendix C) : latest modifications since 0.3.0a2

    This new version was improved again to give more flexibility to combine usage of custom test listener and XML configuration file

    More details in changelog on http://www.laurent-laville.org/pear/pepr/PEAR_TestListener/
  • Laurent Laville
    [2009-06-14 22:45 UTC]

    Changelog :

    - First beta is PHPCodeSniffer ready (no features changed since alpha3)
    - Source code online are up-to-date corresponding to new version 0.3.0b1

    No comment since a full week now I've opened this proposal. You still have a chance to do it, before it was too late ;-)
  • Laurent Laville
    [2009-06-17 19:51 UTC]

    Because I run a lot same test suite with same XML configuration file, I got idea to used template in name of PEAR::Log target handlers


    Changes since beta1 :

    Log file name can contain %Y, %M, %D for date and %I for ident.
    See Example B2. (modified) Add alternative solution with XML configuration file

    Add support of SQLite handler options in phpunit.xml configuration file