The document summarizes a talk about Bow, which is a behavior-driven development (BDD) framework for Arrow. It discusses the evolutions of development approaches, provides an overview of what Bow is and how it works, demonstrates examples of using Bow with Node.js and web integration, and outlines next steps to become a BDD master with practice using the right tools.
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Bow BDD Arrow - BDD framework for JavaScript
1. Bow – BDD for Arrow
News QE – Ares Huang
18 June, 2012
2. Topics of this talk
Development Evolutions
What is Bow
Bow @ GitHub & BDD
› Node.js Demo
› Web Integration Demo
And Next?
Bow – BDD for Arrow 2 6/17/2012
14. BDD – Stakeholder Stories
In order to
<achieve some outcome which contributes to the
vision, or business value>
As a
<stakeholder>
I want
<some other stakeholder>
<to do, use or be restricted by something>
Bow – BDD for Arrow 14 6/17/2012
15. BDD – Story or Unit tests?
What’s the difference between story and unit tests where I have
both?
The difference is that the story checks the
whole, but I might wish to confirm a portion of the
whole
and that is when I need a unit test.
Bow – BDD for Arrow 15 6/17/2012
16. Unit Tests Stories
Bow – BDD for Arrow 16 6/17/2012
26. What is Bow
Spec + Arrow
Scenarios
= Bow
Bow – BDD for Arrow 26 6/17/2012
27. What is Bow.sh
$ cat ./bow.sh
#! /bin/sh
./bin/bow.js $1 "$*" | grep -o -E "([BDD]|Total Number of|Total Test
Execution Time|Report Created|Execute).*$"
Bow – BDD for Arrow 27 6/17/2012
28. What is Bow.js
$ ./bin/bow.js
Usage: ./bin/bow.js [file path] "[arrow options]"
Example:
./bin/bow.js features/math.feature "--group smoke --
browser=firefox --report"
Bow – BDD for Arrow 28 6/17/2012
29. How to install Bow?
Prerequisites.
1. Assumed Node.js and Arrow frameworks.
› Arrow frameworks is not yet open sourced.
2. Required Gherkin for Node.js
› npm install Gherkin
Bow is open sourced
› https://github.com/bowdev/Bow
Supported platform : Depending on Arrow frameworks.
› Currently, Arrow can support Mac & Linux. (Not yet on Windows)
Bow – BDD for Arrow 29 6/17/2012
36. Bow Demo – Web Integration
Bow – BDD for Arrow 36 6/17/2012
37. Next? Become a BDD master
With right tools and practice, everyone can become a BDD master.
Bow – BDD for Arrow 37 6/17/2012
38. Bow – Q&A
Further Reading
1. Introduction BDD (Dan North)
2. http://cukes.info/
3. How we do BDD – putting it all together
Contact
Ares Huang - aresyhoo@yahoo-inc.com
SlideShare version of this tech talk
Bow – BDD for Arrow 38 6/17/2012