SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
5 Things 
Cucumber 
Is Bad At 
(& why that’s a 
good thing) 
By Richard Lawrence 
For CukeUp NYC, Sept 30, 2014
As we get started… 
Discuss with one or two people near you: 
What are some common complaints you 
hear (or say) about Cucumber?
Problems with My Car
Problems with My Car 
1. Doesn’t taste good 
2. Doesn’t fit in my carry-on luggage 
3. Buggy entertainment system 
4. Some people think it’s ugly 
5. Bigger than most other cars 
6. Relatively low gas mileage
Two kinds of 
Weaknesses 
Those that represent 
opportunities for 
improvement 
Those that teach us 
what the thing is & 
what we do or don’t 
need
5 “Problems” with Cucumber 
that can teach us 
about Cucumber, 
BDD, and us
“Problems” with Cucumber #1 
Gherkin isn’t a very powerful language. 
Where are my Gherkin 
macros? How am I 
supposed to program 
with this?
“Problems” with Cucumber #2 
I have to describe things in 2 places. 
Background: 
Given 
a 
provider 
named 
"Complex 
Schedule 
Provider" 
serving: 
| 
From 
| 
To 
| 
When 
| 
Both 
Ways? 
| 
| 
Boulder 
| 
Boulder 
| 
M-­‐F 
7:30am-­‐5pm 
| 
yes 
| 
| 
Boulder 
| 
Lafayette 
| 
M 
7:30am-­‐5pm; 
W 
7:30am-­‐5pm 
| 
yes 
| 
| 
Boulder 
| 
Louisville 
| 
M-­‐F 
7:30am-­‐5pm 
| 
no 
| 
And 
I'm 
logged 
in 
as 
a 
non-­‐admin 
user 
Given 
/^a 
provider 
named 
"([^"]*)" 
serving:$/ 
do 
|provider_name, 
schedule| 
# 
... 
end 
Given 
/I'm 
logged 
in 
as 
a 
non-­‐admin 
user/ 
do 
# 
... 
end
“Problems” with Cucumber #3 
Step definitions are all global. 
Why don’t I get 
namespaces? Won’t this 
lead to ambiguity?
“Problems” with Cucumber #4 
Regular expressions. 
(?:[a-­‐z0-­‐9!#$%&'*+/=?^_`{|}~-­‐]+(?:.[a-­‐z0-­‐9!#$%&'*+/=? 
^_`{|}~-­‐]+)*|"(?:[x01-­‐x08x0bx0cx0e-­‐x1fx21x23-­‐x5bx5d-­‐x7f]| 
[x01-­‐x09x0bx0cx0e-­‐x7f])*")@(?:(?:[a-­‐z0-­‐9](?:[a-­‐z0-­‐9-­‐]*[a-­‐ 
z0-­‐9])?.)+[a-­‐z0-­‐9](?:[a-­‐z0-­‐9-­‐]*[a-­‐z0-­‐9])?|[(?:(?:25[0-­‐5]| 
2[0-­‐4][0-­‐9]|[01]?[0-­‐9][0-­‐9]?).){3}(?:25[0-­‐5]|2[0-­‐4][0-­‐9]| 
[01]?[0-­‐9][0-­‐9]?|[a-­‐z0-­‐9-­‐]*[a-­‐z0-­‐9]:(?:[x01-­‐x08x0bx0cx0e-­‐ 
x1fx21-­‐x5ax53-­‐x7f]|[x01-­‐x09x0bx0cx0e-­‐x7f])+)])
“Problems” with Cucumber #4 
Regular expressions. 
(.+) 
cucumbers? 
an? 
(d+) 
(?:I'm 
logged|I 
log) 
See 
h%p://www.agileforall.com/2010/07/ 
just-­‐enough-­‐regular-­‐expressions-­‐for-­‐cucumber/
“Problems” with Cucumber #5 
My stakeholders won’t write feature files. 
Doesn’t it defeat the purpose 
of Gherkin and separate 
feature files if I still have to 
write it all anyway?
SO What?
Questions? 
Contact me… 
Twitter: @rslawrence 
Email: richard.lawrence@agileforall.com 
Blog: www.richardlawrence.info

Weitere ähnliche Inhalte

Ähnlich wie 5 things cucumber is bad at by Richard Lawrence

Ähnlich wie 5 things cucumber is bad at by Richard Lawrence (20)

Testing antipatterns
Testing antipatternsTesting antipatterns
Testing antipatterns
 
Developing software 2013
Developing software 2013Developing software 2013
Developing software 2013
 
English For IT Starter Module 2.pptx
English For IT Starter Module 2.pptxEnglish For IT Starter Module 2.pptx
English For IT Starter Module 2.pptx
 
7 Wastes of Software Development
7 Wastes of Software Development7 Wastes of Software Development
7 Wastes of Software Development
 
Unit 13 l04 and l05
Unit 13 l04 and l05Unit 13 l04 and l05
Unit 13 l04 and l05
 
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
RSC SE Teaching toolkit no 8 Todaysmeet, QR codes and Slideshare - Jane Macke...
 
English lesson 2 by Lana Voinova
English lesson 2 by Lana VoinovaEnglish lesson 2 by Lana Voinova
English lesson 2 by Lana Voinova
 
Work From Home Guide For Filipinos 0225
Work From Home Guide For Filipinos 0225Work From Home Guide For Filipinos 0225
Work From Home Guide For Filipinos 0225
 
Chef Cookbook Testing and Continuous Integration
Chef Cookbook Testing and Continuous IntegrationChef Cookbook Testing and Continuous Integration
Chef Cookbook Testing and Continuous Integration
 
Unit 13 lo5 powerpoint
Unit 13 lo5 powerpointUnit 13 lo5 powerpoint
Unit 13 lo5 powerpoint
 
An Intelligent Assistant for High-Level Task Understanding
An Intelligent Assistant for High-Level Task UnderstandingAn Intelligent Assistant for High-Level Task Understanding
An Intelligent Assistant for High-Level Task Understanding
 
Module_4 English For IT Starter.pdf.pdf
Module_4 English For IT Starter.pdf.pdfModule_4 English For IT Starter.pdf.pdf
Module_4 English For IT Starter.pdf.pdf
 
Easy speak in 5 easy steps by joanne keevers
Easy speak in 5 easy steps by joanne keeversEasy speak in 5 easy steps by joanne keevers
Easy speak in 5 easy steps by joanne keevers
 
Wolfpack at lewis creek orientation
Wolfpack at lewis creek orientationWolfpack at lewis creek orientation
Wolfpack at lewis creek orientation
 
Upward Bound Math and Science Summer Academy
 Upward Bound  Math and Science Summer Academy  Upward Bound  Math and Science Summer Academy
Upward Bound Math and Science Summer Academy
 
How to Gather Useful, Usable Customer Satisfaction Feedback
How to Gather Useful, Usable Customer Satisfaction FeedbackHow to Gather Useful, Usable Customer Satisfaction Feedback
How to Gather Useful, Usable Customer Satisfaction Feedback
 
Building an A/B Testing Analytics System with R and Shiny
Building an A/B Testing Analytics System with R and ShinyBuilding an A/B Testing Analytics System with R and Shiny
Building an A/B Testing Analytics System with R and Shiny
 
Software development and Sambar - what's the connection ?
Software development and Sambar - what's the connection ?Software development and Sambar - what's the connection ?
Software development and Sambar - what's the connection ?
 
SXSW Workshop on Designing for Behavior Change (2014)
SXSW Workshop on Designing for Behavior Change (2014)SXSW Workshop on Designing for Behavior Change (2014)
SXSW Workshop on Designing for Behavior Change (2014)
 
Skillwise - Business writing
Skillwise - Business writing Skillwise - Business writing
Skillwise - Business writing
 

Mehr von Skills Matter

Oscar reiken jr on our success at manheim
Oscar reiken jr on our success at manheimOscar reiken jr on our success at manheim
Oscar reiken jr on our success at manheim
Skills Matter
 
Russ miles-cloudfoundry-deep-dive
Russ miles-cloudfoundry-deep-diveRuss miles-cloudfoundry-deep-dive
Russ miles-cloudfoundry-deep-dive
Skills Matter
 
I went to_a_communications_workshop_and_they_t
I went to_a_communications_workshop_and_they_tI went to_a_communications_workshop_and_they_t
I went to_a_communications_workshop_and_they_t
Skills Matter
 
Bootstrapping a-devops-matter
Bootstrapping a-devops-matterBootstrapping a-devops-matter
Bootstrapping a-devops-matter
Skills Matter
 

Mehr von Skills Matter (20)

Patterns for slick database applications
Patterns for slick database applicationsPatterns for slick database applications
Patterns for slick database applications
 
Scala e xchange 2013 haoyi li on metascala a tiny diy jvm
Scala e xchange 2013 haoyi li on metascala a tiny diy jvmScala e xchange 2013 haoyi li on metascala a tiny diy jvm
Scala e xchange 2013 haoyi li on metascala a tiny diy jvm
 
Oscar reiken jr on our success at manheim
Oscar reiken jr on our success at manheimOscar reiken jr on our success at manheim
Oscar reiken jr on our success at manheim
 
Progressive f# tutorials nyc dmitry mozorov & jack pappas on code quotations ...
Progressive f# tutorials nyc dmitry mozorov & jack pappas on code quotations ...Progressive f# tutorials nyc dmitry mozorov & jack pappas on code quotations ...
Progressive f# tutorials nyc dmitry mozorov & jack pappas on code quotations ...
 
Cukeup nyc ian dees on elixir, erlang, and cucumberl
Cukeup nyc ian dees on elixir, erlang, and cucumberlCukeup nyc ian dees on elixir, erlang, and cucumberl
Cukeup nyc ian dees on elixir, erlang, and cucumberl
 
Cukeup nyc peter bell on getting started with cucumber.js
Cukeup nyc peter bell on getting started with cucumber.jsCukeup nyc peter bell on getting started with cucumber.js
Cukeup nyc peter bell on getting started with cucumber.js
 
Agile testing & bdd e xchange nyc 2013 jeffrey davidson & lav pathak & sam ho...
Agile testing & bdd e xchange nyc 2013 jeffrey davidson & lav pathak & sam ho...Agile testing & bdd e xchange nyc 2013 jeffrey davidson & lav pathak & sam ho...
Agile testing & bdd e xchange nyc 2013 jeffrey davidson & lav pathak & sam ho...
 
Progressive f# tutorials nyc rachel reese & phil trelford on try f# from zero...
Progressive f# tutorials nyc rachel reese & phil trelford on try f# from zero...Progressive f# tutorials nyc rachel reese & phil trelford on try f# from zero...
Progressive f# tutorials nyc rachel reese & phil trelford on try f# from zero...
 
Progressive f# tutorials nyc don syme on keynote f# in the open source world
Progressive f# tutorials nyc don syme on keynote f# in the open source worldProgressive f# tutorials nyc don syme on keynote f# in the open source world
Progressive f# tutorials nyc don syme on keynote f# in the open source world
 
Agile testing & bdd e xchange nyc 2013 gojko adzic on bond villain guide to s...
Agile testing & bdd e xchange nyc 2013 gojko adzic on bond villain guide to s...Agile testing & bdd e xchange nyc 2013 gojko adzic on bond villain guide to s...
Agile testing & bdd e xchange nyc 2013 gojko adzic on bond villain guide to s...
 
Dmitry mozorov on code quotations code as-data for f#
Dmitry mozorov on code quotations code as-data for f#Dmitry mozorov on code quotations code as-data for f#
Dmitry mozorov on code quotations code as-data for f#
 
A poet's guide_to_acceptance_testing
A poet's guide_to_acceptance_testingA poet's guide_to_acceptance_testing
A poet's guide_to_acceptance_testing
 
Russ miles-cloudfoundry-deep-dive
Russ miles-cloudfoundry-deep-diveRuss miles-cloudfoundry-deep-dive
Russ miles-cloudfoundry-deep-dive
 
Serendipity-neo4j
Serendipity-neo4jSerendipity-neo4j
Serendipity-neo4j
 
Plug 20110217
Plug   20110217Plug   20110217
Plug 20110217
 
Lug presentation
Lug presentationLug presentation
Lug presentation
 
I went to_a_communications_workshop_and_they_t
I went to_a_communications_workshop_and_they_tI went to_a_communications_workshop_and_they_t
I went to_a_communications_workshop_and_they_t
 
Plug saiku
Plug   saikuPlug   saiku
Plug saiku
 
Huguk lily
Huguk lilyHuguk lily
Huguk lily
 
Bootstrapping a-devops-matter
Bootstrapping a-devops-matterBootstrapping a-devops-matter
Bootstrapping a-devops-matter
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
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, ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
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...
 
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
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

5 things cucumber is bad at by Richard Lawrence

  • 1. 5 Things Cucumber Is Bad At (& why that’s a good thing) By Richard Lawrence For CukeUp NYC, Sept 30, 2014
  • 2. As we get started… Discuss with one or two people near you: What are some common complaints you hear (or say) about Cucumber?
  • 4. Problems with My Car 1. Doesn’t taste good 2. Doesn’t fit in my carry-on luggage 3. Buggy entertainment system 4. Some people think it’s ugly 5. Bigger than most other cars 6. Relatively low gas mileage
  • 5. Two kinds of Weaknesses Those that represent opportunities for improvement Those that teach us what the thing is & what we do or don’t need
  • 6. 5 “Problems” with Cucumber that can teach us about Cucumber, BDD, and us
  • 7. “Problems” with Cucumber #1 Gherkin isn’t a very powerful language. Where are my Gherkin macros? How am I supposed to program with this?
  • 8. “Problems” with Cucumber #2 I have to describe things in 2 places. Background: Given a provider named "Complex Schedule Provider" serving: | From | To | When | Both Ways? | | Boulder | Boulder | M-­‐F 7:30am-­‐5pm | yes | | Boulder | Lafayette | M 7:30am-­‐5pm; W 7:30am-­‐5pm | yes | | Boulder | Louisville | M-­‐F 7:30am-­‐5pm | no | And I'm logged in as a non-­‐admin user Given /^a provider named "([^"]*)" serving:$/ do |provider_name, schedule| # ... end Given /I'm logged in as a non-­‐admin user/ do # ... end
  • 9. “Problems” with Cucumber #3 Step definitions are all global. Why don’t I get namespaces? Won’t this lead to ambiguity?
  • 10. “Problems” with Cucumber #4 Regular expressions. (?:[a-­‐z0-­‐9!#$%&'*+/=?^_`{|}~-­‐]+(?:.[a-­‐z0-­‐9!#$%&'*+/=? ^_`{|}~-­‐]+)*|"(?:[x01-­‐x08x0bx0cx0e-­‐x1fx21x23-­‐x5bx5d-­‐x7f]| [x01-­‐x09x0bx0cx0e-­‐x7f])*")@(?:(?:[a-­‐z0-­‐9](?:[a-­‐z0-­‐9-­‐]*[a-­‐ z0-­‐9])?.)+[a-­‐z0-­‐9](?:[a-­‐z0-­‐9-­‐]*[a-­‐z0-­‐9])?|[(?:(?:25[0-­‐5]| 2[0-­‐4][0-­‐9]|[01]?[0-­‐9][0-­‐9]?).){3}(?:25[0-­‐5]|2[0-­‐4][0-­‐9]| [01]?[0-­‐9][0-­‐9]?|[a-­‐z0-­‐9-­‐]*[a-­‐z0-­‐9]:(?:[x01-­‐x08x0bx0cx0e-­‐ x1fx21-­‐x5ax53-­‐x7f]|[x01-­‐x09x0bx0cx0e-­‐x7f])+)])
  • 11. “Problems” with Cucumber #4 Regular expressions. (.+) cucumbers? an? (d+) (?:I'm logged|I log) See h%p://www.agileforall.com/2010/07/ just-­‐enough-­‐regular-­‐expressions-­‐for-­‐cucumber/
  • 12. “Problems” with Cucumber #5 My stakeholders won’t write feature files. Doesn’t it defeat the purpose of Gherkin and separate feature files if I still have to write it all anyway?
  • 14. Questions? Contact me… Twitter: @rslawrence Email: richard.lawrence@agileforall.com Blog: www.richardlawrence.info