Professional Documents
Culture Documents
Extreme Programming
bret@pettichord.com
www.pettichord.com
March 2003
Copyright © 2003 Bret Pettichord. All rights reserved.
The Agile Alliance Values
“We have come to value:
Context-driven testing is
an agile approach to testing
regardless of whether development is agile.
www.context-driven-testing.com
The Role of Testing
Testing is the headlights of the project
! Where are you now? Where are you headed?
Testing provides information to the team
! This allows the team to make informed decisions
A “bug” is anything that could bug a user
! Testers don’t make the final call
Testing does not assure quality
! The team does (or doesn’t)
Testing is not a game of “gotcha”
! Find ways to set goals, rather than focus on
mistakes
Extreme Programming Practices
Test-Driven Development
Pair Programming
Short Iterations & Releases
Refactoring
“User Stories"
Acceptance Testing
Team Code Ownership
Test-Driven Development
Developers write unit tests before coding.
! Motivates coding
! Improves design (reducing coupling and improving
cohesion)
! Supports refactoring
Many open-source test tools have been
developed to support this
! xUnit
Refactoring
Improving the Design of Existing Code
tests
Testers
Manual Test
Testing Descriptions
Software Automation
Product Fixtures
Test
Interface
Exploratory Learning
Plan to explore the product with each
iteration.
Look for bugs, missing features and
opportunities for improvement.
We don’t understand software until we
have used it.
Lessons for All
Test automation is easiest with close
collaboration between testers and
programmers.
Agile testers are valuable to any
project.
Further Study
Lessons Learned in Software Testing
! www.testinglessons.com
Agile Testing Papers
! www.testing.com/agile
! Testers Should Embrace Agile Programming,
www.io.com/~wazmo/papers/embrace_agile_programming.html
! Where are the Testers in XP?
www.stickyminds.com/s.asp?F=S6217_COL_2
Test-Driven Development
! Test-Driven Development: by Example, Kent Beck
! Refactoring, Martin Fowler
! “Test Infected,” Beck and Gamma
! “Learning to Love Unit Testing,” Thomas and Hunt
Fit
! fit.c2.com