+ All Categories
Transcript
Page 1: Behaviour Driven Development (BDD) With Apex on Force.com

Behaviour Driven Development (BDD) with Apex on Force.comOr “Here Comes Pepino”

Carolina Ruiz Medina, FinancialForce.com, Principal Developer@carolenlanubePaul Battisson, Xactium Cloud Solutions, Technology Architect@pbattisson

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

Objectives1. 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

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

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?

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

“Old Skool”

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

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

Using BDD

Focus is on “What” to be implemented for the system. A shared understanding by discussing examples

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

Original Idea

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

Intelligent Discussion

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

Options

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

Step Definitions in Gherkin

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

Pepino!

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

Demo time!

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

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

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

What else/future stuff?• Multi-language• Auto-upload of class for you• Auto-run of tests• Build actions/ant commands/API

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

Paul Battisson Carolina Ruiz Medina

@pbattisson @carolenlanube

Github Repository - http://bit.ly/HD5viCDan North – Introducing BDD - http://bit.ly/h9ADGw

Cucumber – cukes.info

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

Top Related