SlideShare a Scribd company logo
Tes Driven
Testin
Brendan Connolly
@theBConnolly
http://brendanconnolly.net
2
What Is TDD?
@theBConnolly
Why Should Testers Care?
Laws to Guide Us
3@theBConnolly
1.
4
No production code unless it is to
make a failing unit test pass
@theBConnolly
Software’s a Journey
Not a Destination
5
Fastest to Write Fastest to Maintain
@theBConnolly
How Do You Start
Testing?
6@theBConnolly
Organic Testing?
7@theBConnolly
1.
8@theBConnolly
No testing unless you have a defined
objective
Let Testers Be explorers,
9@theBConnolly
But...
Manage that exploration as a series
of expeditions
2.
10
You are not allowed to write any
more of a unit test than is sufficient
to fail.
@theBConnolly
Directions Vs. A Map
11@theBConnolly
Narrowly Focused Intentions 12@theBConnolly
2.
13@theBConnolly
Test only enough to satisfy the
objective
“ Joy comes in sips, not gulps
- Sharon Draper
14@theBConnolly
Break down work into chunks that
that fit into distraction free time
boxes.
3.
16
Write only enough production code
to pass one failing unit test
@theBConnolly
Hierarchy of Values
17
Building Discipline
@theBConnolly
Test small to Develop small
Prioritize for willpower
3.
18@theBConnolly
No activities outside the
objective
Tester Merit Badges
19@theBConnolly
You don’t have to justify the value
of testers
Find A Bug?
20@theBConnolly
Stay within
the boundaries of intent
Intent Driven Testing
21@theBConnolly
Distractions Friction
Gain speed via Throughput
Functionally focused
Hierarchy of Values
22
Build Discipline
@theBConnolly
Work small to test small
The more you do, the more you
have to unwind and unpack
23
Red, Green, Refactor
@theBConnolly
24@theBConnolly
25@theBConnolly
...And Quality Emerges
“Figure out what test will best move your
code towards completion.
(Take as much time as you need. This is the
hardest step for beginners.)
-James Shore
26@theBConnolly
Think:
“
27@theBConnolly
“Making a commit at this point will improve
your process even more. You will have
autonomous chunks of work that are small
and easy to understand.
-Cecil Williams
28@theBConnolly
Commit:
“
29@theBConnolly
30
Test Driven
Testing Mantra
@theBConnolly
Think:
31@theBConnolly
Consider the high level testing strategy
Decide what task to pursue
Red:
32@theBConnolly
Establish clear intentions and outcomes
Decompose your goal
Green:
33@theBConnolly
Stay true to your charter
Take mindful action
Refactor:
34@theBConnolly
Shift from intuition to data driven
Unpack your observations
Commit:
35@theBConnolly
Investigate, Log, Communicate
Summarize Actions and Outcomes
This is hard
36@theBConnolly
Changing Habits
Building Discipline
Practice, Practice, Practice
37@theBConnolly
“ A choreographed pattern of
movements used to train
yourself to the level of
muscle memory
38@theBConnolly
Kata:
“ Simple problems not production code
Short (30-ish minutes)
Focus on form not solutions
39@theBConnolly
Code Kata’s
“
40@theBConnolly
Testing Kata’s
“
41@theBConnolly
Testing Kata’s: Stapler
“
42@theBConnolly
Testing Kata’s:
Pen
“
43@theBConnolly
Testing Kata’s:
Search Page
“ Apply Different Heuristics
Different Personas
Different Tools
44@theBConnolly
Testing Kata’s: Changing it Up
Cycles
45@theBConnolly
“ Seconds - Follow the 3 Laws
46@theBConnolly
Cycles of TDD
Minutes - Red, Green, Refactor
10 Minutes - Specific / Generic Cycle
http://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html
“As the tests get more specific, the code gets
more generic
-”Uncle” Bob Martin
47@theBConnolly
Specific / Generic Cycle
“ Seconds - Follow the 3 Laws
48@theBConnolly
Cycles of TDD
Minutes - Red, Green, Refactor
10 Minutes - Specific / Generic Cycle
Hours - Architectural Boundaries
http://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html
“
49@theBConnolly
Cycles of Test Driven Testing
Minutes - Follow the 3 Laws
30 Minutes-ish - Think, Red, Green,
Refactor, Commit
Hours-ish - Specific / Generic Cycle
As testers intentions get more
specific
The testers perspective becomes
more holistic
50@theBConnolly
Be Well, Create, Share
Connect With Me
@theBConnolly
brendanconnolly.net
|

More Related Content

PDF
Manual Regression Testing Manifesto
PDF
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
PPTX
Regress to Impress
PPTX
Test Driven Testing
PPTX
Break to build - the mindset of the modern day tester
PPTX
A Context-Driven Approach to Automation in Testing
PDF
Test automation – the bitter truth
PPTX
"Worst" practices of software testing
Manual Regression Testing Manifesto
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
Regress to Impress
Test Driven Testing
Break to build - the mindset of the modern day tester
A Context-Driven Approach to Automation in Testing
Test automation – the bitter truth
"Worst" practices of software testing

What's hot (19)

PPTX
A/B Testing That Matters
PDF
Failing: The Very Human Side of Testing
PPTX
Hindsight lessons about API testing
PPTX
10 Guidelines for A/B Testing
PDF
Worst practices in software testing by the Testing troll
PPT
Tester developer interaction
PDF
Guerilla UX Testing Live! 4YFN
PPTX
Automation vs. intelligence - "follow me if you want to live"
PDF
All you need know about testing
PPTX
Pros and Cons of A/B Testing (UX Camp Brighton 2013)
PPTX
Building an A/B Testing Analytics System with R and Shiny
PPTX
What is What is Professional Testing?
PPTX
Software Testing
PPTX
Test all the things with the periodic table
PDF
A/B Testing and the Infinite Monkey Theory
PPTX
Claudiu Draghia ITEM 2018
PPTX
Open-source testing tools
PPTX
DOES15 - Aaron Volkmann - Busting Silos & Red Tape: DevOps in Federal Government
PPTX
A/B Testing at Scale
A/B Testing That Matters
Failing: The Very Human Side of Testing
Hindsight lessons about API testing
10 Guidelines for A/B Testing
Worst practices in software testing by the Testing troll
Tester developer interaction
Guerilla UX Testing Live! 4YFN
Automation vs. intelligence - "follow me if you want to live"
All you need know about testing
Pros and Cons of A/B Testing (UX Camp Brighton 2013)
Building an A/B Testing Analytics System with R and Shiny
What is What is Professional Testing?
Software Testing
Test all the things with the periodic table
A/B Testing and the Infinite Monkey Theory
Claudiu Draghia ITEM 2018
Open-source testing tools
DOES15 - Aaron Volkmann - Busting Silos & Red Tape: DevOps in Federal Government
A/B Testing at Scale
Ad

Similar to Test Driven Testing (20)

PPTX
TDD - Seriously, try it - Codemotion (May '24)
PPTX
TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)
PPTX
TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)
PPTX
TDD - Seriously, try it! - Bucarest Tech Week
PPTX
TDD - Seriously, try it! (updated '22)
PPTX
TDD - Seriously, try it! - Opensouthcode
PDF
PPT
Test-Driven Development in the Corporate Workplace
PDF
TDD and Simple Design Workshop - Session 1 - March 2019
PPTX
{10.0} Test Driven Development.pptx
PDF
Effective Testing Practices in an Agile Environment
PDF
Test Driven Development Methodology and Philosophy
PDF
Test Driven Development (TDD)
PPT
TDD - Christchurch APN May 2012
ODP
Effective TDD - Less is more
PPT
Introduction to Test Driven Development
PPTX
A Brief Introduction to Test-Driven Development
PPTX
Test-driven development & Behavior-driven development basics
PDF
Tdd practices
TDD - Seriously, try it - Codemotion (May '24)
TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)
TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)
TDD - Seriously, try it! - Bucarest Tech Week
TDD - Seriously, try it! (updated '22)
TDD - Seriously, try it! - Opensouthcode
Test-Driven Development in the Corporate Workplace
TDD and Simple Design Workshop - Session 1 - March 2019
{10.0} Test Driven Development.pptx
Effective Testing Practices in an Agile Environment
Test Driven Development Methodology and Philosophy
Test Driven Development (TDD)
TDD - Christchurch APN May 2012
Effective TDD - Less is more
Introduction to Test Driven Development
A Brief Introduction to Test-Driven Development
Test-driven development & Behavior-driven development basics
Tdd practices
Ad

More from Brendan Connolly (8)

PDF
Exploratory Testing As Code
PDF
Exploratory Testing As Code Eurostar23
PDF
Automation Maturity Heuristic
PDF
Architecting A Testing Strategy
PDF
Panoramic Quality: The Fellowship of Testing in DevOps
PPTX
Building a Crypto Bot with Node.js
PDF
Leading by Example
PPTX
Frisby.js - Give it a Toss
Exploratory Testing As Code
Exploratory Testing As Code Eurostar23
Automation Maturity Heuristic
Architecting A Testing Strategy
Panoramic Quality: The Fellowship of Testing in DevOps
Building a Crypto Bot with Node.js
Leading by Example
Frisby.js - Give it a Toss

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
medical staffing services at VALiNTRY
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Essential Infomation Tech presentation.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Softaken Excel to vCard Converter Software.pdf
medical staffing services at VALiNTRY
Odoo POS Development Services by CandidRoot Solutions
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Operating system designcfffgfgggggggvggggggggg
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Essential Infomation Tech presentation.pptx
Understanding Forklifts - TECH EHS Solution
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms II-SECS-1021-03
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

Test Driven Testing