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
Desenvolvendo Aplicações Flask com TDD
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Flávio Pontes
May 28, 2016
Programming
36
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Desenvolvendo Aplicações Flask com TDD
Discute alguns aspectos do desenvolvimento de aplicações Flask usando TDD.
Flávio Pontes
May 28, 2016
Other Decks in Programming
See All in Programming
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
ChromeでローカルLLM
ryu1013
0
140
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
280
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
780
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
440
phperだってパンチカードでコーディングしたい
o0h
PRO
0
350
sbt 2.0: takeoff
eed3si9n
0
160
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
260
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
440
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
100
Featured
See All Featured
Writing Fast Ruby
sferik
630
63k
Google's AI Overviews - The New Search
badams
0
1.6k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
How to build a perfect <img>
jonoalderson
1
6.1k
Docker and Python
trallard
47
4.2k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
420
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Transcript
Desenvolvendo Aplicações Flask com TDD
Desenvolvimento Guiado por testes
• Escrever um teste que vai falhar; • Escrever o
código mais direto e simples para passar no teste; • Refatorar o código de acordo com as boas práticas. Desenvolvimento Guiado por testes
• Simples • Flexível • Extensível
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world():
return 'Hello World!' if __name__ == '__main__': app.run()
• Sistema Níveis de teste • Funcional (Aceitação) • Unidade
Teste de Aceitação • Caixa preta • Selenium • Flask-testing
Exemplo de uso do sistema do ponto de vista do usuário. Excelente para acusar regressões. • Sem Mock
Teste de Sistema • Caixa branca • Flask.test_client() • lxml
Teste das view functions, uma a uma. • Coverage
Teste de Unidade • Caixa branca • Mock Testa as
classes e funções. • Coverage
Referências Test-Driven Development By Example Kent Beck
Referências Learning Python Testing Daniel Arbuckle
Referências Test-Driven Development With Python Harry Percival http://chimera.labs.oreilly.com/ https://github.com/hjwp/Book-TDD-Web-Dev-Python
Obrigado! Github: flaviocpontes LinkedIn: flaviocpontes Twitter: @flaviocpontes