Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Bathcamp 2010 tdd



A brief introduction to Test Driven Development, helpful tools and our experiences.

A brief introduction to Test Driven Development, helpful tools and our experiences.



Total Views
Views on SlideShare
Embed Views



2 Embeds 6

http://www.linkedin.com 5
https://www.linkedin.com 1



Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • <br />
  • simple intro <br />
  • Who we are <br />
  • <br />
  • <br />
  • What is hudson <br />
  • XP = extreme programming <br /> Test - Code - Test.... <br /> Write tests before code <br /> Tests give confidence <br />
  • Tests as a design process <br />
  • <br />
  • Decide on the problem first then design the solution <br />
  • <br />
  • What is testable code? <br />
  • Smallest part that can be tested. <br /> One test should test one thing <br />
  • What is hudson <br />
  • <br />
  • Show how to write testable code. <br /> Show mistakes. <br /> Show tests being written and run. <br />
  • Other options. <br />
  • What is hudson <br />
  • What is hudson <br />
  • What is hudson <br />
  • What is hudson <br />
  • What is hudson <br />
  • What is hudson <br />
  • Local install. <br /> Start with broken build, show where errors are shown. fix and re-test <br />
  • Using PHP Checkstyle and PHPMD with hudson <br /> <br />
  • <br />

Bathcamp 2010 tdd Bathcamp 2010 tdd Presentation Transcript

  • Test Driven Development “All code is guilty unless proved innocent”
  • Introductions Versionable is simply a collaboration We’re passionate about “doing it right”
  • Introductions Web application developers View slide
  • Topics What to expect View slide
  • Problems we all face Principles of TDD Topics Unit tests What to expect Our experience Examples Tools
  • Maintenance of code Confidence your code works Problems Edge Cases We all face Refactoring Preventing Regression
  • Test driven development What is it?
  • Test driven development Agile/XP Iterative process Tests before code Refactor
  • http://en.wikipedia.org/wiki/File:Test-driven_development.PNG
  • How do tests help? Proof your code works Stop regression Confidence in refactoring Show progress Self documentation Easier to detect bugs
  • How do tests help? Plan before you code You know where you are going Better design Faster code that actually works
  • Unit tests A unit is the smallest testable part of your application
  • Unit tests Writing tests is not as scary as it sounds Write code that is testable Not just for big fish Unit tests
  • Unit tests Application break down Small Units Slow tests aren’t Unit Tests Simple tests
  • Our experience Tests rock
  • Our experience Web based Was code then test Now test then code PHPUnit Code coverage Standards (PMD, PHPCS) Confidence to refactor
  • Demo time
  • What is continuous integration Why should i use it
  • Hudson Code, meet Hudson... Oh, hello there. Hi....
  • Hudson Code, meet Hudson... Oh, hello there. Hi....
  • Demo time again...
  • Code Standards (PHP) Mess Detection and Check Style
  • Thank you for listening All our slides will be available on Slideshare after this talk at: http://www.slideshare.net/versionable Any Questions?