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
Zach Smith
June 06, 2012
Programming
3
1.4k
Adding Tests to an Uncovered App
DjangoCon Euro 2012
Zach Smith
June 06, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
pnpm に provenance のダウングレード を検出する PR を出してみた
ryo_manba
1
160
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
440
Building, Deploying, and Monitoring Ruby Web Applications with Falcon (Kaigi on Rails 2025)
ioquatix
4
2.6k
CSC305 Lecture 10
javiergs
PRO
0
310
React Nativeならぬ"Vue Native"が実現するかも?_新世代マルチプラットフォーム開発フレームワークのLynxとLynxのVue.js対応を追ってみよう_Vue Lynx
yut0naga1_fa
2
1.8k
NIKKEI Tech Talk#38
cipepser
0
300
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
260
理論と実務のギャップを超える
eycjur
0
190
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
560
bootcamp2025_バックエンド研修_WebAPIサーバ作成.pdf
geniee_inc
0
140
Blazing Fast UI Development with Compose Hot Reload (Bangladesh KUG, October 2025)
zsmb
2
370
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
390
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
620
Faster Mobile Websites
deanohume
310
31k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.2k
How STYLIGHT went responsive
nonsquared
100
5.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.1k
jQuery: Nuts, Bolts and Bling
dougneiner
65
7.9k
Product Roadmaps are Hard
iamctodd
PRO
55
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Music & Morning Musume
bryan
46
6.9k
The Cult of Friendly URLs
andyhume
79
6.6k
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