SlideShare a Scribd company logo
1 of 23
Download to read offline
@lisacrispin
Lisa	Crispin
With	content	from	George	Dinwiddie
Copyright	2020	Lisa	Crispin
Behavior-Driven Development
& Continuous Delivery:
How do they fit together?
BDD CD
A	little	about	me
Quality	Owner,	specializing	in	
observability
lisa@agiletester.ca
@lisacrispin
With	Janet	Gregory
New!
@lisacrispin
What	I’ll	talk	about:
● Ways	BDD	can	help	shorten	feedback	loops
● Ways	CD	impacts	BDD
● What	can	your	team	try?
Confidence
@lisacrispin
Behavior-Driven	Development	(BDD)
● Structured	conversations	to	elicit	rules	and	examples
● Results	in	shared	understanding	across	the	team	
● Examples	become	scenarios	to	guide	development
From	
https://cucumber.io/docs/bdd/
@lisacrispin
Continuous	Delivery	/	Deployment	(CD)
● Deploy	small	changes	to	production	frequently	at	a	
sustainable	pace
● Lower	risk
● Faster	feedback
What’s	in	a	deployment	pipeline?
@lisacrispin
It’s	not	really	linear
● Continuous	delivery	is	a	series	of	feedback	loops
● Planning	and	coding	are	part	of	it
Plan, code,
deliver
Deploy, learn,
release
@lisacrispin
How	can	BDD	help	shorten	feedback	loops?
Observing &
Experimenting
Questioning &
Hypothesizing
Analysis
&
Learning
@lisacrispin
“Three	Amigos”	(or	4	or	5)	meetings
● Product	person,	programmer,	tester,	+	designer…
● Structured	conversations	(eg.	example	mapping)
● Purpose,	business	rules,	examples	for	each	story
● Groundwork	for	shared	understanding
Example	Mapping	example
Story	à
Rules	à
Examplesà
Questions
@lisacrispin
Executable	tests	to	guide	development
● Turn	examples	into	test	scenarios	with	expected	
behavior
● Business-readable	specification	
● Can	be	automated	to	provide	regression	test	suites	&	
living	documentation
Other	BDD	benefits
Slice	features	into	small,	
consistently	sized	stories
Explore	how	a	capability	will	
be	used	before	it’s	built
Frequent	deploy	of	
small	changes,	less	risk
Deliver	the	“right	thing”
@lisacrispin
Continuous	Deployment (CD)
Busines
s
approva
l
Compilation/
unit	testing
Create
deployment
artifact
Testing
stage	1
Testing
stage	2
Deployment	Pipeline
Developer
Commit
Deployed	
to
Production
Code	is
merged
(master/trunk)
Continuous	Integration	(CI)
Continuous	Delivery	(CD)
Continuous	Delivery	enhances	BDD
@lisacrispin
Principles	of	CD	support	BDD
● Build	quality	in
● Work	in	small	batches
● Computers	perform	repetitive	tasks,	people	
solve	problems
● Relentlessly	pursue	continuous	improvement
● Everyone	is	responsible
https://continuousdelivery.com
@lisacrispin
Fast	feedback
● From	automated	tests
● From	production	usage
● Use	“learning	releases”	aka	MVPs	to	get	direct	
feedback
○ Manage	access	via	release	feature	toggles,	canary	
releases,	dark	launches
○ Get	usage	metrics,	analyze	errors
@lisacrispin
CD	&	BDD	enable	the	continuous	DevOps	loop
● Learning	from	production	flows	back	to	discovery	
process
● Refine,	delete,	add	small	changes
● Small,	lower-risk	new	changes	that	add	value	flow	
continually	to	production
https://www.quora.com/Is-DevOps-
easy-to-learn
@lisacrispin
How	can	your	team	
take	advantage?
@lisacrispin
Already	practicing	CD,	but	no	BDD?
Try	a	small	experiment!
● Learn	more	about	BDD	(see	resources	list)
● Have	an	amigos	meeting	before	your	next	iteration	
planning	meeting
● Discuss	the	goal,	rules	and	examples	for	each	story
● Before/during	coding,	write	scenarios	based	on	those	
to	guide	development
@lisacrispin
Already	doing	BDD,	but	no	CD?
With	your	whole	team:
● Make	a	visual	map	of	the	path	
to	production
● Start	talking	about	it!
● What	can	you	automate?
● Apply	the	continuous	delivery	
principles
@lisacrispin
Build	relationships
• Get	people	in	every	role/discipline	engaged	in	thinking	
about	quality
• Get	to	know	people	in	and	outside	of	your	team
• Ask	for	help,	offer	help
• Build	trust	so	you	can	learn
@lisacrispin
Building	a	quality	culture
• Transformative	leaders
• Trust	and	psychological	safety
• Whole	team	”owns”	product
• Focus	on	quality,	not	speed
@lisacrispin
Talk	about	it	with	your	team
● How	to	build	shared	
understanding	before	
coding
● How	to	shorten	cycle	time,	
feedback	loops
● How	to	get	value	to	
customers	continually
@lisacrispin
A	few	resources
● Discovery:	Explore	Behavior	Using	Examples,	by	Seb Rose	and	
Gáspár Nagy
● Introducing	Example	Mapping,	by	Matt	Wynne
● Continuous	Delivery,	by	Jez	Humble	and	David	Farley
● A	Practical	Guide	to	Testing	in	DevOps,	by	Katrina	Clokie
● Accelerate	The	Science	of	Lean	Software	and	DevOps,	by	Dr.	
Nicole	Forsgren,	Jez	Humble,	Gene	KIm
● “The	Three	Amigos	— All	For	One	- One	For	All,”	by	George	
Dinwiddie,	Better	Software	
● “The	Three	Amigos	Strategy	of	Developing	User	Stories,”	by	
George	Dinwiddie,	AgileConnection

More Related Content

Similar to BDD and CD - better together

Why Isn't Clean Coding Working For My Team
Why Isn't Clean Coding Working For My TeamWhy Isn't Clean Coding Working For My Team
Why Isn't Clean Coding Working For My Team
Rob Curry
 

Similar to BDD and CD - better together (20)

BDD introduction
BDD introductionBDD introduction
BDD introduction
 
AgileCamp 2014 Track 1: Scaling agile with Disciplined Agile Delivery
AgileCamp 2014 Track 1: Scaling agile with Disciplined Agile DeliveryAgileCamp 2014 Track 1: Scaling agile with Disciplined Agile Delivery
AgileCamp 2014 Track 1: Scaling agile with Disciplined Agile Delivery
 
Whole team approach to agile testing bdd can help better pune 15th meetup
Whole team approach to agile testing    bdd can help better pune 15th meetupWhole team approach to agile testing    bdd can help better pune 15th meetup
Whole team approach to agile testing bdd can help better pune 15th meetup
 
The game has changed!
The game has changed!The game has changed!
The game has changed!
 
Websites are not just for christmas
Websites are not just for christmasWebsites are not just for christmas
Websites are not just for christmas
 
Being Test-Driven: It's not really about testing
Being Test-Driven: It's not really about testingBeing Test-Driven: It's not really about testing
Being Test-Driven: It's not really about testing
 
Info Session #1_ Introducing GDSC ITTP & Meet our Member.pptx
Info Session #1_ Introducing GDSC ITTP & Meet our Member.pptxInfo Session #1_ Introducing GDSC ITTP & Meet our Member.pptx
Info Session #1_ Introducing GDSC ITTP & Meet our Member.pptx
 
Scaling Dev Teams With Purpose
Scaling Dev Teams With PurposeScaling Dev Teams With Purpose
Scaling Dev Teams With Purpose
 
On the way to Product-Oriented Production / Aleksey Rehlov (Creative Mobile)
On the way to Product-Oriented Production / Aleksey Rehlov (Creative Mobile)On the way to Product-Oriented Production / Aleksey Rehlov (Creative Mobile)
On the way to Product-Oriented Production / Aleksey Rehlov (Creative Mobile)
 
Becoming agile with Peapod Labs Sr. Product Owner
Becoming agile with Peapod Labs Sr. Product OwnerBecoming agile with Peapod Labs Sr. Product Owner
Becoming agile with Peapod Labs Sr. Product Owner
 
Human side of DevOps Transformation
Human side of DevOps TransformationHuman side of DevOps Transformation
Human side of DevOps Transformation
 
Why Isn't Clean Coding Working For My Team
Why Isn't Clean Coding Working For My TeamWhy Isn't Clean Coding Working For My Team
Why Isn't Clean Coding Working For My Team
 
Org Design for Design Orgs (Kristin Skinner at DesignOps 2017)
Org Design for Design Orgs (Kristin Skinner at DesignOps 2017)Org Design for Design Orgs (Kristin Skinner at DesignOps 2017)
Org Design for Design Orgs (Kristin Skinner at DesignOps 2017)
 
20 things I wish I had known about modern product development by Andy Birds -...
20 things I wish I had known about modern product development by Andy Birds -...20 things I wish I had known about modern product development by Andy Birds -...
20 things I wish I had known about modern product development by Andy Birds -...
 
Understanding Lean IT
Understanding Lean ITUnderstanding Lean IT
Understanding Lean IT
 
Tech Talk : Kickstart Your Career With Fundamental IT Knowledge
Tech Talk : Kickstart Your Career With Fundamental IT KnowledgeTech Talk : Kickstart Your Career With Fundamental IT Knowledge
Tech Talk : Kickstart Your Career With Fundamental IT Knowledge
 
AgileMidwest2018-Erickson-PowerOfRetrospective
AgileMidwest2018-Erickson-PowerOfRetrospectiveAgileMidwest2018-Erickson-PowerOfRetrospective
AgileMidwest2018-Erickson-PowerOfRetrospective
 
Are we Agile or Fragile? Common Adoption Challenges through Research in Africa
Are we Agile or Fragile? Common Adoption Challenges through Research in AfricaAre we Agile or Fragile? Common Adoption Challenges through Research in Africa
Are we Agile or Fragile? Common Adoption Challenges through Research in Africa
 
Agile - One Size Does Not Fit All
Agile - One Size Does Not Fit AllAgile - One Size Does Not Fit All
Agile - One Size Does Not Fit All
 
Sun Chemical - Inventory Management Fiori Applications: Design Thinking throu...
Sun Chemical - Inventory Management Fiori Applications: Design Thinking throu...Sun Chemical - Inventory Management Fiori Applications: Design Thinking throu...
Sun Chemical - Inventory Management Fiori Applications: Design Thinking throu...
 

More from lisacrispin

Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
lisacrispin
 
What Testers Can Learn to Collaborate Effectively with Programmers, others
What Testers Can Learn to Collaborate Effectively with Programmers, othersWhat Testers Can Learn to Collaborate Effectively with Programmers, others
What Testers Can Learn to Collaborate Effectively with Programmers, others
lisacrispin
 

More from lisacrispin (20)

Get testing bottlenecks out of your pipelines
Get testing bottlenecks out of your pipelinesGet testing bottlenecks out of your pipelines
Get testing bottlenecks out of your pipelines
 
Thinking Outside the Box: Cognitive bias and testing
Thinking Outside the Box: Cognitive bias and testingThinking Outside the Box: Cognitive bias and testing
Thinking Outside the Box: Cognitive bias and testing
 
The Whole Team Approach to Quality in Continuous Delivery
The Whole Team Approach to Quality in Continuous DeliveryThe Whole Team Approach to Quality in Continuous Delivery
The Whole Team Approach to Quality in Continuous Delivery
 
DeliveryConf - Whole Team Approach to Testing in Continuous Delivery
DeliveryConf - Whole Team Approach to Testing in Continuous DeliveryDeliveryConf - Whole Team Approach to Testing in Continuous Delivery
DeliveryConf - Whole Team Approach to Testing in Continuous Delivery
 
ALN Houston - "Build Quality In: Guiding Development with Tests"
ALN Houston - "Build Quality In: Guiding Development with Tests"ALN Houston - "Build Quality In: Guiding Development with Tests"
ALN Houston - "Build Quality In: Guiding Development with Tests"
 
Agile Requirements Exploration: How Testers Add Value
Agile Requirements Exploration: How Testers Add ValueAgile Requirements Exploration: How Testers Add Value
Agile Requirements Exploration: How Testers Add Value
 
Do testers have to code... to be useful?
Do testers have to code... to be useful?Do testers have to code... to be useful?
Do testers have to code... to be useful?
 
Agile 20015 Boot Camp: Intro to Agile Testing - Everyone Owns Quality
Agile 20015 Boot Camp: Intro to Agile Testing - Everyone Owns QualityAgile 20015 Boot Camp: Intro to Agile Testing - Everyone Owns Quality
Agile 20015 Boot Camp: Intro to Agile Testing - Everyone Owns Quality
 
Build Quality In, workshop with Janet Gregory and Lisa Crispin at Agile Roots...
Build Quality In, workshop with Janet Gregory and Lisa Crispin at Agile Roots...Build Quality In, workshop with Janet Gregory and Lisa Crispin at Agile Roots...
Build Quality In, workshop with Janet Gregory and Lisa Crispin at Agile Roots...
 
Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
Do testers have to code... to be useful? Janet Gregory and Lisa Crispin plena...
 
Advanced Topics in Agile Tsting: Focus on Automation
Advanced Topics in Agile Tsting: Focus on AutomationAdvanced Topics in Agile Tsting: Focus on Automation
Advanced Topics in Agile Tsting: Focus on Automation
 
Do testers have to code... to be useful?
Do testers have to code... to be useful?Do testers have to code... to be useful?
Do testers have to code... to be useful?
 
Build Your Agile Testing Skill Set
Build Your Agile Testing Skill SetBuild Your Agile Testing Skill Set
Build Your Agile Testing Skill Set
 
Making Test Automation Work in Agile Projects 2012
Making Test Automation Work in Agile Projects 2012Making Test Automation Work in Agile Projects 2012
Making Test Automation Work in Agile Projects 2012
 
What Testers Can Learn to Collaborate Effectively with Programmers, others
What Testers Can Learn to Collaborate Effectively with Programmers, othersWhat Testers Can Learn to Collaborate Effectively with Programmers, others
What Testers Can Learn to Collaborate Effectively with Programmers, others
 
Advanced Topics in Agile Testing - The Future - Agile Testing Days 2014
Advanced Topics in Agile Testing - The Future - Agile Testing Days 2014Advanced Topics in Agile Testing - The Future - Agile Testing Days 2014
Advanced Topics in Agile Testing - The Future - Agile Testing Days 2014
 
Welcome to the Future! Preparing for our agile testing journeys, Agile Testin...
Welcome to the Future! Preparing for our agile testing journeys, Agile Testin...Welcome to the Future! Preparing for our agile testing journeys, Agile Testin...
Welcome to the Future! Preparing for our agile testing journeys, Agile Testin...
 
Morph your mindset for Continuous Delivery, Agile Roots 2014
Morph your mindset for Continuous Delivery,  Agile Roots 2014Morph your mindset for Continuous Delivery,  Agile Roots 2014
Morph your mindset for Continuous Delivery, Agile Roots 2014
 
Belgium Testing Days: Shift your testing mindset
Belgium Testing Days: Shift your testing mindsetBelgium Testing Days: Shift your testing mindset
Belgium Testing Days: Shift your testing mindset
 
Changing Your Testing Mindset, Booster Conference, Bergen, Norway, 2014
Changing Your Testing Mindset, Booster Conference, Bergen, Norway, 2014Changing Your Testing Mindset, Booster Conference, Bergen, Norway, 2014
Changing Your Testing Mindset, Booster Conference, Bergen, Norway, 2014
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

BDD and CD - better together