News Feed
Sections




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

Brian Swan's Blog:
Automating PHPUnit Tests in Windows Azure
January 05, 2012 @ 11:58:46

Brian Swan has posted another tutorial in a series looking at testing applications on the Azure platform. In this latest post he talks about how to automate your PHPUnit tests as a part of the start up of the instance.

In this post, I'll show you how to deploy your PHPUnit tests with your application, have the tests run as a start up task, and have the results written to your storage account for analysis. Attached to this post is a .zip file that contains a skeleton project that you can use to automatically run PHPUnit tests when you deploy a PHP application to Azure. I'll walk you though how to use the skeleton project, then provide a bit more detail as to how it all works (so you can make modifications where necessary).

He has it broken up into a few easy-to-follow steps:

  • Download the AzurePHPWebRole zip archive and unpack it
  • Copy your application, tests and PHP installation into the resulting file structure
  • Create a skeleton "ServiceConfiguration.cscfg" file with the "cspack" command and edit it to change the "osfamily" and "osversion" settings
  • Use "cspack" to package up the application and deploy the application

He walks you through the "how it works" steps too - the things that happen for you automatically on the server side to do things like set up the file to log to, configure the PHP environment and execute the "runtests" Powershell file as included in the AzurePHPWebRole download.

0 comments voice your opinion now!
automate test phpunit windows azure deploy automatic tutorial


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Building Template-Driven Web Applications with Dwoo (part 1)

PHPBuilder.com: Dynamic XML with PHP

BillS' IIS Blog: How to install PHP on IIS7 (RC1)

DevShed: Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application

Matthew Weier O'Phinney's Blog: Rendering Zend_Form decorators individually


Community Events





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


tips interview community package library api deployment series laravel introduction podcast language list framework bugfix opinion symfony install release voicesoftheelephpant

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