News Feed
Sections




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

Sebastian Bergmann's Blog:
Isolated (and Parallel) Test Execution
December 19, 2007 @ 15:26:00

Sebastian Bergmann points out a new feature that PHPUnit (the popular PHP unit testing tool) now has - parallel_test_execution allowing for each test to execute on a separate PHP process.

The advantages of this include full test isolation and the fact that a test can now cause a PHP fatal error or even a segmentation fault of the PHP interpreter without interrupting the test execution.

He does mention, however, that it can cause a bit more overhead for larger testing suites since it needs to create a new process (complete with memory usage) for each running test. There are also coding issues that could be thrown off by this option (he gives an example of an inheritance issue with eZ Components).

He also notes some of his thoughts on how to control/configure the process (like in a configuration file) and via an "@isolated" notation to make it easy to do it dynamically.

0 comments voice your opinion now!
phpunit seperate process unittest execute overhead configure isolated phpunit seperate process unittest execute overhead configure isolated


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Tricorder: A Testing Helper for PHP

Mike Lively's Blog: Introducing Phake Mocking Framework

Ibuildings techPortal: Building an Continuous Integration Server for PHP with Hudson

Sebastian Bergmann's Blog: PHP-GTK2 Testrunner for PHPUnit

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 4


Community Events





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


interview composer opinion tool list version voicesoftheelephpant laravel language security release symfony podcast artisanfiles conference framework series library community introduction

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