Upload
phillip-trelford
View
1.843
Download
2
Tags:
Embed Size (px)
DESCRIPTION
TickSpec is a lightweight Behaviour Driven Development (BDD) framework for C# and F#. Specify the behaviour of your system in plain text with the Gherkin business language. Then run and debug your text specifications from inside Visual Studio. This talk will look at some lessons learned from some recent projects where BDD was applied. Starting with insights from Business Analyst Anne-Marie King and Tester James Banton, including tips on how to get started constructing good specifications, along with some developer tips.
Citation preview
BDD WITH ``TICKSPEC``Anne Marie King, James Banton, Phillip Trelford
@anniejking, @ptrelford
http://tickspec.com
2010
ENTERPRISE APPLICATIONS
AGILE MANIFESTO
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
COLLABORATION
Customers
Business AnalystTesters
Developer
USER STORIES
ACCEPTANCE TEST SCENARIO
Refunded items should be returned to stock
Given a customer buys a black jumper And I have 3 black jumpers left in stock When he returns the black jumper for a
refund Then I should have 4 black jumpers in stock
TEST DRIVEN DEVELOPMENT (TDD)
Or Specify Unit Tests First
Pros Quality Regression
Cons Developer focused
BEHAVIOUR DRIVEN DEVELOPMENT (BDD)
Or Specify System Behaviour First
Pros Business focused Quality Regression
Cons Adds layer of indirection
BDD FRAMEWORKS
Execute Specifications against Systems
BDD FRAMEWORKS
Execute Specifications against Systems
Internal DSL FsSpec FsUnit NaturalSpec
External DSL SpecFlow StorEvil TickSpec
TICKSPEC
TICKSPEC DESIGN GOALS
Platform for Innovation Low Friction Lightweight Extensible Framework
Support & Leverage F# Tick methods Modules Active Patterns
Support major test frameworks NUnit, xUnit, MbUnit Silverlight Unit Test Framework
DEMO
AGILE DEVELOPMENT
Define User Stories
Define Acceptance Tests
Code to Acceptance Tests
Confirm Acceptance Tests
WHAT NEXT?
Liz Keogh
An Introduction to BDD
Mark Crowther
Specification By Example
Dec 1st Dec 7th
Q & A: THE SLAUGHTERED LAMB