Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gherkin

 Gherkin

Checando qualidade de requisitos

Ayrton Araújo

September 04, 2014
Tweet

More Decks by Ayrton Araújo

Other Decks in Programming

Transcript

  1. G+: http://ayr-ton.net/+ Twitter: http://ayr-ton.net/@ E-mail: [email protected] ayr-ton at irc.freenode.net #cucumber

    ayr-ton at GitHub CSM, CSD, CSPO, LPIC-2 Dev at FPF Tech Ubuntu Brazilian Community Council. $whoami
  2. “Qual o sentido de testar o que ainda não foi

    desenvolvido?” Sobre escrever os testes primeiro
  3. Feature: Serve coffee Coffee should not be served until paid

    for Coffee should not be served until the button has been pressed If there is no coffee left then money should be refunded
  4. # language: pt Funcionalidade: Adição Para evitar erros bobos Como

    um péssimo matemático Eu quero saber como somar dois números
  5. Scenario: Buy last coffee Given there are 1 coffees left

    in the machine And I have deposited 1$ When I press the coffee button Then I should be served a coffee
  6. Cenário: Adicionar dois números Dado que eu digitei 50 na

    calculadora E que eu digitei 70 na calculadora Quando eu aperto o botão de soma Então o resultado na calculadora deve ser 120