Today I would like to show you how to setup an continues integration server for a PHP project with Jenkins. If you don’t know what the continues integration is have a look at Wikipedia. In a simple words It can be explained as a process of frequent commits to the project’s mainline and running all sort of automated tests to discover problems as soon as it’s possible. CI comes with a long list of benefits and only two disadvantages (according to Wikipedia). One of them is “Initial setup time required”.
Continue reading “Continuous Integration for PHP with Jenkins”
Category: Test Driven Development
Introduction to Test Driven Development
Yesterday I had a great pleasure to speak at Green Room about Test Driven Development. This was my first speech ever and despite the stress it was fun doing it. A warm thanks to all participants for joining us that evening and to UVD and Browser London for organising the event. I hope you’re going to like the video.
Continue reading “Introduction to Test Driven Development”
Code faster with Unit Testing
Wait a minute! How can you possibly code faster when in fact you have to write more code? Test Driven Development requires additional (redundant?!) classes which only duplicates work. The “redundant” code has to be maintained and kept in sync with the main software. It might be good for some big companies (preferably at the other end of the world) but not for us. We all heard that.
Continue reading “Code faster with Unit Testing”
Running PHPUnit from Eclipse on a remote system
For the last few years I’ve been using virtual machine to keep my dev Linux isolated from my desktop. Recently I decided to improve my test driven development by integrating PHPUnit with Eclipse. I didn’t want to waste time on switching between IDE and console to run a test. The challenge is to create an external tool which will SSH into the remote server, run tests and feedback to Eclipse. In fact this method lets you do anything on the remote server, not only unit test.
Continue reading “Running PHPUnit from Eclipse on a remote system”
Unit testing Zend Framework Models with PHPUnit
A new project created by the ZF command line tool (zf) will have a default IndexControllerTest in the tests folder. The test class inherits from Zend_Test_PHPUnit_ControllerTestCaseand provides a good example of how to test a controller.
Continue reading “Unit testing Zend Framework Models with PHPUnit”