Continuous Integration for PHP with Jenkins

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”

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”