SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
BDD & TDD avec
Cucumber
Jean-Michel Garnier http://21croissants.com
56% of all bugs are introduced in
requirements. (CHAOS Report)
Definition of done
Scénario: Login invalide
Etant donné que je suis sur la page de Login
Lorsque j’entre n’importe quoi comme login
Alors je devrais voir “login invalide”
cycle “BDD”
1.Ecris le scénario avec le Product Owner
2.Execute le scénario (RED)
3.Ecris le code de l’application afin que le scénario
passe (GREEN)
4. REFACTOR le code (on reste green)
5. Rince et répète: baby steps
TDD = emergent Design
LIVRES
http://cuke4ninja.com/
http://pragprog.com/titles/nrtest/rails-test-prescriptions
http://pragprog.com/titles/achbd/the-rspec-book
http://www.amazon.com/Test-Driven-Development-Kent-Beck/
DEMO
http://www.jetbrains.com/ruby/
http://cukes.info/http://rubyonrails.org/
325318
total downloads

Más contenido relacionado

Destacado

Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
KMS Technology
 
Behavior Driven Development with Cucumber
Behavior Driven Development with CucumberBehavior Driven Development with Cucumber
Behavior Driven Development with Cucumber
Brandon Keepers
 
1images de verbes_de_sens_contraire-2
1images de verbes_de_sens_contraire-21images de verbes_de_sens_contraire-2
1images de verbes_de_sens_contraire-2
Maria Firou
 
Tp final producción de textos 2012
Tp final producción de textos 2012Tp final producción de textos 2012
Tp final producción de textos 2012
Verónica A. Dean
 

Destacado (20)

Cucumber Ecosystem Presentation
Cucumber Ecosystem PresentationCucumber Ecosystem Presentation
Cucumber Ecosystem Presentation
 
Innovations Techniques Au Service Du Test De Recette Automatisé
Innovations Techniques Au Service Du Test De Recette AutomatiséInnovations Techniques Au Service Du Test De Recette Automatisé
Innovations Techniques Au Service Du Test De Recette Automatisé
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
 
Behavior driven Development
Behavior driven DevelopmentBehavior driven Development
Behavior driven Development
 
Fitnesse - Acceptance testing
Fitnesse - Acceptance testingFitnesse - Acceptance testing
Fitnesse - Acceptance testing
 
Automatisations des tests fonctionnels avec Robot Framework
Automatisations des tests fonctionnels avec Robot FrameworkAutomatisations des tests fonctionnels avec Robot Framework
Automatisations des tests fonctionnels avec Robot Framework
 
Test acceptance
Test acceptanceTest acceptance
Test acceptance
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
 
Behavior Driven Development
Behavior Driven DevelopmentBehavior Driven Development
Behavior Driven Development
 
Behavior Driven Development with Cucumber
Behavior Driven Development with CucumberBehavior Driven Development with Cucumber
Behavior Driven Development with Cucumber
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingAgile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated Testing
 
1images de verbes_de_sens_contraire-2
1images de verbes_de_sens_contraire-21images de verbes_de_sens_contraire-2
1images de verbes_de_sens_contraire-2
 
Agenda Ciudadana por la Transparencia - Suesca, Cundinamarca
Agenda Ciudadana por la Transparencia - Suesca, CundinamarcaAgenda Ciudadana por la Transparencia - Suesca, Cundinamarca
Agenda Ciudadana por la Transparencia - Suesca, Cundinamarca
 
Clivages - Analyse des divisions politiques au sein des intercommunalités
Clivages - Analyse des divisions politiques au sein des intercommunalitésClivages - Analyse des divisions politiques au sein des intercommunalités
Clivages - Analyse des divisions politiques au sein des intercommunalités
 
Un testimonio
Un testimonioUn testimonio
Un testimonio
 
Beneficios de la web 2.0
Beneficios de la web 2.0Beneficios de la web 2.0
Beneficios de la web 2.0
 
Cómo crear un blog
Cómo crear un blogCómo crear un blog
Cómo crear un blog
 
Le Festival
Le FestivalLe Festival
Le Festival
 
Tp final producción de textos 2012
Tp final producción de textos 2012Tp final producción de textos 2012
Tp final producción de textos 2012
 

Similar a Tdd cara nov2010

Similar a Tdd cara nov2010 (20)

to Test or not to Test?
to Test or not to Test?to Test or not to Test?
to Test or not to Test?
 
Créer une API en 5 mins avec API Platform
Créer une API en 5 mins avec API PlatformCréer une API en 5 mins avec API Platform
Créer une API en 5 mins avec API Platform
 
Le Kit du Parfait Petit Intégrateur (PW2009)
Le Kit du Parfait Petit Intégrateur (PW2009)Le Kit du Parfait Petit Intégrateur (PW2009)
Le Kit du Parfait Petit Intégrateur (PW2009)
 
Livraison continue avec Drupal 7
Livraison continue avec Drupal 7Livraison continue avec Drupal 7
Livraison continue avec Drupal 7
 
Prérequis au développement google android
Prérequis au développement google androidPrérequis au développement google android
Prérequis au développement google android
 
Node.js, le pavé dans la mare
Node.js, le pavé dans la mareNode.js, le pavé dans la mare
Node.js, le pavé dans la mare
 
Acra
Acra Acra
Acra
 
Intégration Continue PHP avec Jenkins CI
Intégration Continue PHP avec Jenkins CIIntégration Continue PHP avec Jenkins CI
Intégration Continue PHP avec Jenkins CI
 
Introduction à Vaadin
Introduction à VaadinIntroduction à Vaadin
Introduction à Vaadin
 
Integration continue et déploiement automatisé
Integration continue et déploiement automatiséIntegration continue et déploiement automatisé
Integration continue et déploiement automatisé
 
Dossier de plan_de_tests_v1.00
Dossier de plan_de_tests_v1.00Dossier de plan_de_tests_v1.00
Dossier de plan_de_tests_v1.00
 
Keynote agile grenoble 2013
Keynote agile grenoble 2013Keynote agile grenoble 2013
Keynote agile grenoble 2013
 
Pipeline Devops - Intégration continue : ansible, jenkins, docker, jmeter...
Pipeline Devops - Intégration continue : ansible, jenkins, docker, jmeter...Pipeline Devops - Intégration continue : ansible, jenkins, docker, jmeter...
Pipeline Devops - Intégration continue : ansible, jenkins, docker, jmeter...
 
Paul valery et les Web components
Paul valery et les Web componentsPaul valery et les Web components
Paul valery et les Web components
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!
 
HTML5... La révolution maintenant!
HTML5... La révolution maintenant!HTML5... La révolution maintenant!
HTML5... La révolution maintenant!
 
Un site sans CMS (Teknseo 2014)
Un site sans CMS (Teknseo 2014)Un site sans CMS (Teknseo 2014)
Un site sans CMS (Teknseo 2014)
 
Développer sereinement avec Node.js
Développer sereinement avec Node.jsDévelopper sereinement avec Node.js
Développer sereinement avec Node.js
 
Ionic
IonicIonic
Ionic
 
Web Perf : par où commencer ? #SEOGoodVibes
Web Perf : par où commencer ? #SEOGoodVibesWeb Perf : par où commencer ? #SEOGoodVibes
Web Perf : par où commencer ? #SEOGoodVibes
 

Más de Jean-Michel Garnier (8)

2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentation2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentation
 
Tests Interfaces Web avec Rails
Tests Interfaces Web avec RailsTests Interfaces Web avec Rails
Tests Interfaces Web avec Rails
 
Fast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-gridFast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-grid
 
User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)
 
Intro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingIntro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance Testing
 
Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)
 
Global Warming Lifestyle Change
Global Warming Lifestyle ChangeGlobal Warming Lifestyle Change
Global Warming Lifestyle Change
 
Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)
 

Tdd cara nov2010