News Feed
Jobs Feed
Sections




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

NetTuts.com:
Parallel Testing for PHPUnit with ParaTest
June 07, 2013 @ 11:44:48

On NetTuts.com today there's a new tutorial showing you how to use ParaTest for PHPUnit to execute your tests in parallel instead of the usual inline, in-order method.

PHPUnit has hinted at parallelism since 2007, but, in the meantime, our tests continue to run slowly. Time is money, right? ParaTest is a tool that sits on top of PHPUnit and allows you to run tests in parallel without the use of extensions. This is an ideal candidate for functional (i.e Selenium) tests and other long-running processes.

ParaTest operates as a separate binary that can easily be installed via Composer. They walk you through the install and show you what kind of options it lets you provide (like number of processes and the path to the PHPUnit executable). They show you how to write some parallel tests, five of them, each that sleeps for a certain amount of time. They also look at another tool that could help run your tests in parallel, Paraunit. They finish off the post with a look at some functional testing examples using Selenium, handling race conditions and some of the future plans for ParaTest's future.

0 comments voice your opinion now!
phpunit parallel testing paratest tutorial paraunit saucelabs

Link: http://net.tutsplus.com/tutorials/php/parallel-testing-for-phpunit-with-paratest

blog comments powered by Disqus

Similar Posts

Giorgio Sironi's Blog: Never write the same code twice: Dependency Injection

DZone.com: Record and replay for testing of legacy PHP applications

Okaka Design Blog: Event calendar using Codeigniter and jQuery without BackendPro

phpDevelopment: Zend Framework Tutorial Series: Part 2 - Debugging your application

Ibuildings techPortal: lessphp: PHP implementation of Less CSS


Community Events











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


performance database introduction support hhvm hack composer security symfony2 release unittest podcast framework language package install application component facebook opinion

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