Top Banner
BDD & TDD avec Cucumber Jean-Michel Garnier http://21croissants.com
8

Tdd cara nov2010

Jan 24, 2015

Download

Technology

Cucumber very simple introduction
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tdd cara nov2010

BDD & TDD avec Cucumber

Jean-Michel Garnier http://21croissants.com

Page 2: Tdd cara nov2010
Page 3: Tdd cara nov2010

56% of all bugs are introduced in requirements. (CHAOS Report)

Page 4: Tdd cara nov2010

Definition of done

Page 5: Tdd cara nov2010

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”

Page 6: Tdd cara nov2010

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 stepsTDD = emergent Design

Page 8: Tdd cara nov2010

DEMO

http://www.jetbrains.com/ruby/http://cukes.info/http://rubyonrails.org/

325318total downloads