Behavior Driven Development & Testing Introduction
-
Upload
christian-jantz -
Category
Technology
-
view
254 -
download
2
Transcript of Behavior Driven Development & Testing Introduction
![Page 1: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/1.jpg)
Behavior Driven Development / TestingCuz’ everyone does TDD, so we invented something new!
Christian Jantz Freelancer Backend Development
SNM Style Net Media GmbH 01.10.2015
![Page 2: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/2.jpg)
http://i.ytimg.com/vi/752V173e31o/maxresdefault.jpg
![Page 3: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/3.jpg)
http://s3.amazonaws.com/rapgenius/funny-monkey-1.jpg
here be monkeys!
![Page 4: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/4.jpg)
Downtime =
http://www.leadliaison.com/revenue-generation-blog/marketing-automation-expensive/
![Page 5: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/5.jpg)
misbehavior =
http://www.sharepick.com/is-it-expensive-to-build-credit/
![Page 6: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/6.jpg)
http://matthewturland.com/slides/jstesting/img/unit-test-all-the-things.jpg
![Page 7: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/7.jpg)
• testMethodA()
• testMethodB()
• testMethodX()
• fixtures, preConditions, …
![Page 8: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/8.jpg)
http://www.mathplusacademy.com/wp-content/uploads/2014/09/coding-national-curriculum-computing.jpg
![Page 9: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/9.jpg)
but Jan*!
*Mr. Product Owner. Code? Unit Tests?
![Page 10: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/10.jpg)
WTF
![Page 11: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/11.jpg)
• Features
• functionalities
• KPI’s
• A/B testing
• Stories
BEHAVIOR
![Page 12: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/12.jpg)
–Jan, Mr. Product Owner
„As a visitor, I want to buy all the products with one click, in order to make the business rich“
![Page 13: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/13.jpg)
–behat test specification
Given I am a website visitor
And my basket is empty
And I am logged in
When I click „buy all products“
Then I should get:
“““
All products bought.
Thank you for your business!
“““
![Page 14: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/14.jpg)
http://galerie.designnation.de/bild/40481
Jan, Mr. Product Manager
![Page 15: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/15.jpg)
slow
![Page 16: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/16.jpg)
• Unit Tests per Push
• Behavior per tag/ version/ pre deploy/ simply once a day!
![Page 17: Behavior Driven Development & Testing Introduction](https://reader033.fdocuments.us/reader033/viewer/2022042619/5876151c1a28ab306c8b6665/html5/thumbnails/17.jpg)