Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Behavior Driven Development, an introduction
Search
Peter Berkenbosch
November 09, 2013
Programming
1
48
Behavior Driven Development, an introduction
Introduction to BDD Lightning talk for RailsGirls Groningen event 9th of november 2013
Peter Berkenbosch
November 09, 2013
Tweet
Share
More Decks by Peter Berkenbosch
See All by Peter Berkenbosch
Open source contribution with Spree
pberkenbosch
1
190
Building Extensions - best practises
pberkenbosch
0
53
Spree Commerce hub for developers
pberkenbosch
0
170
TDD Spree
pberkenbosch
5
450
Twente RB Spree from the trenches
pberkenbosch
0
52
GroningenRB Spree from the trenches
pberkenbosch
0
110
Spree from the Trenches
pberkenbosch
3
320
[dutch] Behavior Driven Development
pberkenbosch
1
68
BDD Outside in development
pberkenbosch
1
150
Other Decks in Programming
See All in Programming
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
CSC509 Lecture 12
javiergs
PRO
0
160
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.3k
flutterkaigi_2024.pdf
kyoheig3
0
170
Arm移行タイムアタック
qnighy
0
350
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
290
受け取る人から提供する人になるということ
little_rubyist
0
250
DevTools extensions で 独自の DevTool を開発する | FlutterKaigi 2024
kokiyoshida
0
120
Missing parts when designing and implementing Android UI
ericksli
0
170
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
260
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Contemporary Test Cases
maaretp
0
140
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
380
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Code Reviewing Like a Champion
maltzj
520
39k
Documentation Writing (for coders)
carmenintech
65
4.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Transcript
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Behavior Driven Development an
introduction Peter Berkenbosch
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Getting Started Create static
pages to your app
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Describe behavior
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl require "test_helper" ! feature
"Show info static page" do scenario “renders pages#info” do visit "/pages/info" page.must_have_content "Info static page" end end test/features/show_info_static_page_test.rb
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Failing test
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl No route matches [GET]
"/pages/info"
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Make it green
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Railsgirls::Application.routes.draw do root :to
=> redirect('/ideas') resources :ideas ! get "pages/info" end config/routes.rb
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl or change the message
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl uninitialized constant PagesController
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Make it green
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl class PagesController < ApplicationController
def info end end app/controllers/pages_controller.rb
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl or change the message
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Expected to include "Info
static page".
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Make it green
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl <h1>Info static page</h1> <p>
Hello wonderful Rails world!</p> app/views/pages/info.html.erb
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl describe behavior failing test
make it green or change the message short recap
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl More to explore!
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl unit tests refactoring minitest
code coverage capybara rspec code katas beer pizza
Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Questions? @pberkenbosch ! peterberkenbosch