News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stefan Priebsch's Blog:
PHPUnit test and Code Coverage Statistics with phing
April 22, 2008 @ 14:15:18

Stefan Priebsch has posted an example of how he uses PHPUnit "manually" to reduce the overhead (and added complexity) of calling phing.

Instead of instantiating PHPUnit from phing, I use the command line interface to call PHPUnit. This decouples phing and PHPUnit, which should cause less problems with version updates in the future. To configure PHPUnit, phing creates a temporary XML configuration file which is deleted after PHPUnit has finished.

The source is included in the post - it manually builds the XML file needed for phing to do its job.

1 comment voice your opinion now!
phing phpunit codecoverage statistic generate xml


blog comments powered by Disqus

Similar Posts

Community News: Xinc - Continuous Integration

Sebastian Bergmann's Blog: Stubbing Hard-Coded Dependencies

Volker Dusch's Blog: An introduction to PHPUnits @covers annotation

Raphael Stolt's Blog: Turning a Zend_Log log file into a RSS feed

Sudheer Satyanarayana's Blog: A Bit Of XML, RSS And CURL In 7 Lines Of PHP And A Useful Program


Community Events





Don't see your event here?
Let us know!


composer language symfony update library introduction series community version install laravel tool podcast package release voicesoftheelephpant framework security opinion interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework