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:
You Need tests...just Not Yet
January 09, 2013 @ 10:44:28

In his most recent post Chris Hartjes looks at the concept of "test whenever" (vs TDD) development practices and how, sometimes, writing tests for things that are may get tossed when they're done may not be the best option.

Let's look at TDD vs. Test whenever. The trade-off being made here is not about quality of code or guarding against regressions. It's about opportunity cost. This had occurred to me but I had dismissed it as being "anti-testing". But I think I was wrong, and here's why.

He talks some about a presentation from Dan North< ("Decisions, Decisions") about when to test (not whether to test or not) and how he noticed his development team was being very productive, but with a "spike and stabilize" development method. He also talks about the concept of "opportunity cost" and how it plays a factor in when tests are introduced to the process.

The key to all this is being able to identify at what stage in this particular pattern your code is at. Is it still a spike, meaning you are working out implementation details and trying to figure out if it will even have the desired result? Or is it stable, providing solid value to the application as a whole and ready to be wrapped in tests to protect against regressions?
0 comments voice your opinion now!
testing advice spike stabilize opportunity cost presentation dannorth


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: Controller Testing in CakePHP

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

Stoyan Stefanov's Blog: The PHP QC presentation featured on Slideshare's homepage

Community News: Responses to the PHP 5.3 Alpha 1 Release

Stefan Koopmanschap: How to Get the Most Out of a Conference


Community Events





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


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

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