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
Adding Tests to an Uncovered App
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Zach Smith
June 06, 2012
Programming
1.4k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Adding Tests to an Uncovered App
DjangoCon Euro 2012
Zach Smith
June 06, 2012
Other Decks in Programming
See All in Programming
AIで効率化できた業務・日常
ochtum
0
150
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
270
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
900
スマートグラスで並列バイブコーディング
hyshu
0
270
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
990
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
200
act1-costs.pdf
sumedhbala
0
130
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
はてなアカウント基盤 State of the Union
cockscomb
1
1.1k
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
610
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
370
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
A better future with KSS
kneath
240
18k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
340
The Curse of the Amulet
leimatthew05
2
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Ethics towards AI in product and experience design
skipperchong
2
320
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
640
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
340
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Transcript
Adding Tests to an Uncovered App Zach Smith | @zmsmith
None
None
None
Production
Staging Production
http://tech.yipit.com/2011/11/09/how-yipit-deploys-django/
http://tech.yipit.com/2011/11/09/how-yipit-deploys-django/ self call
Automated Testing
Automated Testing Automated Testing
WHEN TO AUTOMATE?
WHEN TO AUTOMATE? - Time
WHEN TO AUTOMATE? - Time - Team
WHEN TO AUTOMATE? - Time - Team - Things really,
really have to work
TYPES OF TESTS
TYPES OF TESTS - Acceptance Tests
TYPES OF TESTS - Acceptance Tests - Functional Tests
TYPES OF TESTS - Acceptance Tests - Functional Tests -
Unit Tests
ACCEPTANCE TESTS
None
None
#BDD library for Gherkin syntax lettuce #browser API on top
of selenium splinter #Always keep this the newest version selenium==2.21.3
GHERKIN Given the state of a system, When an action
is taken, Then an outcome is achieved.
#BDD library for Gherkin syntax lettuce #browser API on top
of selenium splinter #Always keep this the newest version selenium==2.21.3
#BDD library for Gherkin syntax lettuce #browser API on top
of selenium splinter #Always keep this the newest version selenium==2.21.3
settings.py
FEATURES
polls/features/vote.feature
polls/features/vote.feature
terrain.py
polls/features/steps.py
polls/features/vote.feature
terrain.py
polls/features/steps.py
polls/features/steps.py
polls/features/steps.py
polls/features/steps.py
None
FUNCTIONAL TESTS
polls/templates/results.html
#Includes a nose test runner and #options for running types
of tests unclebob #helper library for scenarios #and assertions sure
#Includes a nose test runner and #options for running types
of tests unclebob #helper library for scenarios #and assertions sure
settings.py
polls/tests/functional/test_polls.py
polls/tests/functional/test_polls.py
None
UNIT TESTS
#Includes a nose test runner and #options for running types
of tests unclebob #helper library for scenarios #and assertions sure
#Includes a nose test runner and #options for running types
of tests unclebob #helper library for scenarios #and assertions sure
#Includes a nose test runner and #options for running types
of tests unclebob #helper library for scenarios #and assertions sure #python mocking library mock
None
None
None
None
settings.py
polls/models.py
polls/tests/unit/test_polls.py
None
polls/models.py
polls/tests/unit/test_analytics.py
polls/tests/unit/test_analytics.py
None
SUMMARY •Acceptance •Functional •Unit
QUESTIONS? Zach Smith | @zmsmith