SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
Acceptance Test-Driven
 Development (ATDD)

  Behavior-Driven
 Development (BDD)

   Specification by
    Example (SBE)

                  @rmueller
Software sem bugs não é suficiente,
é preciso escrever o software certo.
           Construir sem defeitos



      Fracasso
                      Sucesso
     Comercial


                                    Produto Certo

        Lixo         Pesadelo
ATDD
  “The first rule of any technology used in a
  business is that automation applied to an
efficient operation will magnify the efficiency.
 The second is that automation applied to an
     inefficient operation will magnify the
                  inefficiency.”
                    Bill Gates
ATDD
• Transformar user stories em testes

• TDD em um nível mais alto
BDD
“a second-generation, outside-in, pull-based,
    multiple-stakeholder, multiple-scale,
    high-automation, agile methodology”

              Dan North, 2009
BDD
• Maior foco no cliente

• Preocupação maior com entrega de valor

• Descoberta de novas informações
SBE
•   Foca nos exemplos
•   Busca a colaboração
•   Busca a descoberta
•   Não tem a carga de má interpretações
•   Fornece uma documentação viva
•   Amigável para não técnicos
Derivar escopo dos objetivos
Especifique em colaboração
Ilustre utilizando exemplos
Refine a especificação
Refine a especificação
• Precisa e testável

• Especificação não é script

• Auto explicativa

• Escrita na linguagem do domínio
Automatize
Automatize
• Trate código de teste com muito cuidado

• Automatize em diferentes níveis

• Investimento inicial alto

• Feedback imediato, documentação viva
  e testes de regressão

• Automatize sem alterar as especificações
Automatize
Valide com frequência
Construa uma documentação
SpecFlow
• Framework open source BDD/ATDD

• Utilizar Gherkin como DSL para as
  especificações

• Utiliza ferramentas padrões do .net, como
  o VisualStudio e nUnit, msTest ou xUnit

• Iniciou desenvolvimento em 2009

• Já foi utilizado em vários projetos
Gherkin
• Uma DSL para escrita de especificações no
  estilo de estórias. Dado / Ao / Então
• Nasceu na comunidade ruby
• Permite automatização e execução da
  especificação
• Utiliza vocabulário próprio
  • Dado, E, Então, Cenário, Mas...
Pickles
DEMO

SpecFlow
Integração
 Negócio
“SBE”
•     Usar SpecFlow para automatização de teste
•     Cliente?! Que cliente??
•     Usar como ferramenta de testes de integração
•     Ligar o turbo!
•     Especificar tudo


    http://www.jamesshore.com/Blog/Five-Ways-to-Misuse-Fit.html
SBE!
•   Colaboração

•   Exemplos bem escritos

•   Automatização

•   Documentação
Obrigado!
     @rmueller

rafael@inventti.com.br

Weitere ähnliche Inhalte

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Specification By Example - BluDotNet

  • 1. Acceptance Test-Driven Development (ATDD) Behavior-Driven Development (BDD) Specification by Example (SBE) @rmueller
  • 2. Software sem bugs não é suficiente, é preciso escrever o software certo. Construir sem defeitos Fracasso Sucesso Comercial Produto Certo Lixo Pesadelo
  • 3. ATDD “The first rule of any technology used in a business is that automation applied to an efficient operation will magnify the efficiency. The second is that automation applied to an inefficient operation will magnify the inefficiency.” Bill Gates
  • 4. ATDD • Transformar user stories em testes • TDD em um nível mais alto
  • 5. BDD “a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology” Dan North, 2009
  • 6. BDD • Maior foco no cliente • Preocupação maior com entrega de valor • Descoberta de novas informações
  • 7. SBE • Foca nos exemplos • Busca a colaboração • Busca a descoberta • Não tem a carga de má interpretações • Fornece uma documentação viva • Amigável para não técnicos
  • 8.
  • 9. Derivar escopo dos objetivos
  • 13. Refine a especificação • Precisa e testável • Especificação não é script • Auto explicativa • Escrita na linguagem do domínio
  • 15. Automatize • Trate código de teste com muito cuidado • Automatize em diferentes níveis • Investimento inicial alto • Feedback imediato, documentação viva e testes de regressão • Automatize sem alterar as especificações
  • 19.
  • 20.
  • 21. SpecFlow • Framework open source BDD/ATDD • Utilizar Gherkin como DSL para as especificações • Utiliza ferramentas padrões do .net, como o VisualStudio e nUnit, msTest ou xUnit • Iniciou desenvolvimento em 2009 • Já foi utilizado em vários projetos
  • 22. Gherkin • Uma DSL para escrita de especificações no estilo de estórias. Dado / Ao / Então • Nasceu na comunidade ruby • Permite automatização e execução da especificação • Utiliza vocabulário próprio • Dado, E, Então, Cenário, Mas...
  • 25. “SBE” • Usar SpecFlow para automatização de teste • Cliente?! Que cliente?? • Usar como ferramenta de testes de integração • Ligar o turbo! • Especificar tudo http://www.jamesshore.com/Blog/Five-Ways-to-Misuse-Fit.html
  • 26. SBE! • Colaboração • Exemplos bem escritos • Automatização • Documentação
  • 27. Obrigado! @rmueller rafael@inventti.com.br