coding the right thing
DESCRIPTION
Presentation on TDD, BDD and Acceptance-test Drive Development in .NET using SpecFlow and WatiNTRANSCRIPT
Coding the Right Thing
AgendaQueuing Theory(x)DDGherkin, SpecFlow and WatiN
About Me
• Developer Evangelist @ Microsoft
• Web Developer and Architect
• Based in Austin, TX• Husband and Father
ON RELIGIOUS DEBATES…
"If we don't bother to verbalize our intuition, we ourselves will do the opposite of what we believe in." - Eli Goldratt
The Goal…
Create Value :: deliver something desired; optimize
for quality
WHAT I LEARNED ABOUT TDD WHILE WAITING IN LINE…
QUEUING THEORY
TRADITIONAL TDDDEMO
SO WHAT’S MY PROBLEM?
"The deeper I got into TDD, the more I felt that my own journey had been less of a wax-on, wax-off process of gradual mastery than a series of blind alleys." - Dan North
SHIFTING FOCUS“Working software that matters” – Dan North
FOCUS ON ACTUAL BEHAVIORS
“SHOULD”
BEHAVIOR-DRIVEN DEVELOPMENT
DEMO
SO WHAT’S MY PROBLEM?
QUEUING THEORY
A STORY, MY TEST; THE BROWSER, MY API…
Gherkin, SpecFlow and WatiN
GHERKINFeature Syntax
SPECFLOWAutomated ATDD
WATINDrive the Browser
SPECIFYING FEATURES WITH SPECFLOW
DEMO
TDD, BDD, ATDD, FDD, SDD…
THE GOAL OF (X)DD…
MINIMIZE REWORK…
Question Your Thinking“Good people with good process will outperform good people with no process every time.” – Grady Booch
Resources• SpecFlow.org• WatiN.sourceforge.net• Gherkin :: http://bit.ly/cONNiL
• Slides and Demos :: http://bit.ly/bddPresentation
Resources (Cont’d)
• Growing Object-Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce :: http://amzn.to/atddbook
• How TDD Works (and More!) :: http://bit.ly/jbrainsTDD
COMING IN THE DECEMBER ISSUE OF MSDN MAGAZINE…
Questions?
Email: [email protected] Twitter: @BrandonSatromBlog: www.userinexperience.com