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

Calabash

 Calabash

By Pedro Carmona from Whitesmith

Http://whitesmith.co
https://twitter.com/whitesmithco

Daniel Lopes

March 28, 2014
Tweet

More Decks by Daniel Lopes

Other Decks in Programming

Transcript

  1. Testing • Unit (scope: object) • Integration (scope: system) •

    Acceptance - Customers are responsible for verifying the correctness of the acceptance tests
  2. Test Driven Development ! • From red to green Image

    http://4.bp.blogspot.com/_9kQQgQD35rY/SaV5p8YBGhI/AAAAAAAAAkg/HOvlhIo7yGI/s1600-h/06_Red_Green_Refactor.JPG
  3. Behavior Driven Development • Purpose: Question the App behavior before

    and during development. • From red to green + natural language
  4. BDD reasons • Strengthen the collaboration of managers, developers and

    clients. • Developers know what use cases and scenarios the tests must cover. • Code easier to maintain.
  5. Cucumber • Ruby gem for Behavior Driven Development. • Very

    readable, maintainable and elegant. • DSL - Gherkin
  6. Calabash • Acceptance and funcional automated tests. • Port Cucumber

    to mobile development. • Developed by Less Painful (acquired by Xamarin in March 2013)
  7. DSL Gherkin Feature: In order to <goal> As an <actor>

    I want to <interaction> Scenarios: Given <initial context> When <event happens> Then <assert result>