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
1.4k
3
Share
Adding Tests to an Uncovered App
DjangoCon Euro 2012
Zach Smith
June 06, 2012
Other Decks in Programming
See All in Programming
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
160
おれのAgentic Coding 2026/03
tsukasagr
1
140
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
4.8k
10 Tips of AWS ~Gen AI on AWS~
licux
5
330
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
250
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.3k
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.3k
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
2.4k
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
570
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
260
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
120
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
230
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Crafting Experiences
bethany
1
110
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
110
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Mind Mapping
helmedeiros
PRO
1
150
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
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