Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Adding Tests to an Uncovered App
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Transcript
64 slides
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
Other Decks in Programming
See All in Programming
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
490
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
450
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
330
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.7k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
はじめてのKubernetesコントリビューション
nasa9084
0
250
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
あなたはMCPの機能を、まだ知らない。
4geru
1
710
AI Augmentation Techniques with Liberty
ivargrimstad
1
540
小さなアプリを作って公開するまで
onozaty
0
220
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.4k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
360
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Optimising Largest Contentful Paint
csswizardry
37
4k
The Curse of the Amulet
leimatthew05
4
17k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
A Soul's Torment
seathinner
9
3.9k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
How to Ace a Technical Interview
jacobian
280
24k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k