News Feed
Sections




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

Chris Hartjes' Blog:
How the Testing Sausage Gets Made
May 17, 2012 @ 09:19:33

For those either just getting into unit testing your applications (maybe even TDD) or those that are old hat at it and what to figure out a few more tricks of the trade, you should check out this latest post from Chris Hartjes about some of the tools he uses to get the job done.

So how does the Grumpy Programmer write code, TDD style? It starts with using a set of tools that reduce the amount of friction required. First, I do almost all my work from a terminal. [...] Why the terminal? PHPUnit is a CLI application. Yes, many popular editors and IDE's can do things like execute PHPUnit for you, but they are limited in what flexibility they provide.

He also talks about his editor of choice, vim, and some of the plugins he uses in his day to day testing development. This includes tools to handle things like interfacing with git/gists, working with ctags to see the code's structure, working with "surroundings" and the pathogen plugin to make adding other plugins easier. He keeps the code up in one terminal and his testing tool (PHPUnit or other) accessible in a second, making it a simple matter of switching to write the test then the functionality to make it pass.

If there is a lesson to be learned from this, it's to make sure that every tool that you use reduces the friction that is generated when building your application using TDD.
0 comments voice your opinion now!
testing tools vim plugins tdd unittest phpunit terminal


blog comments powered by Disqus

Similar Posts

Volker Dusch's Blog: Setting up Jenkins for PHP Projects

Ilia Alshanetsky's Blog: PHP 5.2.1 RC1 Available for testing

International PHP Magazine: Poll Question: What Is the Best Way to Do QA for PHP?

Wim Godden's Blog: Automated PHP 5.3 compatibility testing for your (old) code

Chris Hartjes' Blog: Snakes and Elephants Playing Nice Together: PHPUnit and py.test with Hudson


Community Events





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


opinion podcast install voicesoftheelephpant security composer symfony package framework language interview release community tool series introduction laravel application version library

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