Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Behaviour Driven Development
(BDD) with Apex on Force.com
Or “Here Comes Pepino”
Carolina Ruiz Medina, FinancialForce.com,...
Objectives
1. What is Behaviour Driven Development?
2. Why should you care?
3. How can we use Behaviour Driven Development...
What is Behaviour Driven Development?
• Animal/Vegetable/Mineral/Machine?
• TDD = Test Driven Development
• BDD = Behavior...
“Old Skool”

Code is written to mirror Developer’s understanding of spec. - focus is on “How?”
Using BDD

Focus is on “What” to be implemented for the system.
A shared understanding by discussing examples
Original Idea
Intelligent Discussion
Options
Step Definitions in Gherkin
Pepino!
Demo time!
Summary
• Agree definitions
• Implement Behavio(u)r Defintions interface
• Return strings containing the required code
• S...
What else/future stuff?
• Multi-language
• Auto-upload of class for you
• Auto-run of tests
• Build actions/ant commands/A...
Paul Battisson

Carolina Ruiz Medina

@pbattisson

@carolenlanube

Github Repository - http://bit.ly/HD5viC
Dan North – In...
Behaviour Driven Development (BDD) With Apex on Force.com
Upcoming SlideShare
Loading in …5
×

Behaviour Driven Development (BDD) With Apex on Force.com

2,418 views

Published on

How do you known you're building the Force.com apps that business values the most? Behaviour Driven Development (BDD) has evolved to help developers create code that is self-documenting, has an automated test suite, and is open to change. This results in apps being much easier to adapt to the changes in your organization. Using features and scenarios, and a little neuro-linguistic programming, BDD also helps developers understand what business really wants the most. Not everything can be high priority! Join us to understand how to apply BDD to your Apex development to create clean code, and communicate effectively with business to build software that matters.

Published in: Technology
  • Be the first to comment

Behaviour Driven Development (BDD) With Apex on Force.com

  1. 1. Behaviour Driven Development (BDD) with Apex on Force.com Or “Here Comes Pepino” Carolina Ruiz Medina, FinancialForce.com, Principal Developer @carolenlanube Paul Battisson, Xactium Cloud Solutions, Technology Architect @pbattisson
  2. 2. Objectives 1. What is Behaviour Driven Development? 2. Why should you care? 3. How can we use Behaviour Driven Development with Apex? 4. Some awesome links to some awesome things for you awesome people
  3. 3. What is Behaviour Driven Development? • Animal/Vegetable/Mineral/Machine? • TDD = Test Driven Development • BDD = Behavior Driven Development • Specs define your tests which define your code • What?
  4. 4. “Old Skool” Code is written to mirror Developer’s understanding of spec. - focus is on “How?”
  5. 5. Using BDD Focus is on “What” to be implemented for the system. A shared understanding by discussing examples
  6. 6. Original Idea
  7. 7. Intelligent Discussion
  8. 8. Options
  9. 9. Step Definitions in Gherkin
  10. 10. Pepino!
  11. 11. Demo time!
  12. 12. Summary • Agree definitions • Implement Behavio(u)r Defintions interface • Return strings containing the required code • See examples in repository • Upload feature file • Download generated test class
  13. 13. What else/future stuff? • Multi-language • Auto-upload of class for you • Auto-run of tests • Build actions/ant commands/API
  14. 14. Paul Battisson Carolina Ruiz Medina @pbattisson @carolenlanube Github Repository - http://bit.ly/HD5viC Dan North – Introducing BDD - http://bit.ly/h9ADGw Cucumber – cukes.info

×