behavior driven development & testing introduction
TRANSCRIPT
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
http://i.ytimg.com/vi/752V173e31o/maxresdefault.jpg
http://s3.amazonaws.com/rapgenius/funny-monkey-1.jpg
here be monkeys!
Downtime =
http://www.leadliaison.com/revenue-generation-blog/marketing-automation-expensive/
misbehavior =
http://www.sharepick.com/is-it-expensive-to-build-credit/
http://matthewturland.com/slides/jstesting/img/unit-test-all-the-things.jpg
• testMethodA()
• testMethodB()
• testMethodX()
• fixtures, preConditions, …
http://www.mathplusacademy.com/wp-content/uploads/2014/09/coding-national-curriculum-computing.jpg
but Jan*!
*Mr. Product Owner. Code? Unit Tests?
WTF
• Features
• functionalities
• KPI’s
• A/B testing
• Stories
BEHAVIOR
–Jan, Mr. Product Owner
„As a visitor, I want to buy all the products with one click, in order to make the business rich“
–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!
“““
http://galerie.designnation.de/bild/40481
Jan, Mr. Product Manager
slow
• Unit Tests per Push
• Behavior per tag/ version/ pre deploy/ simply once a day!