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
Testando aplicação phoenix
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Igor Florian
January 30, 2016
Programming
1
250
Testando aplicação phoenix
Igor Florian
January 30, 2016
Tweet
Share
More Decks by Igor Florian
See All by Igor Florian
Você não está sozinho, vá pra produção com Elixir!
igorffs
3
310
Conceitos que podem te ajudar a escrever testes melhores
igorffs
4
260
Other Decks in Programming
See All in Programming
kintone + ローカルLLM = ?
akit37
0
110
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
150
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
350
今から始めるClaude Code超入門
448jp
8
9.3k
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
150
高速開発のためのコード整理術
sutetotanuki
1
430
文字コードの話
qnighy
17
5.5k
Gemini for developers
meteatamel
0
120
Go1.26 go fixをプロダクトに適用して困ったこと
kurakura0916
0
190
CSC307 Lecture 08
javiergs
PRO
0
690
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
700
Featured
See All Featured
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
460
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
110
Done Done
chrislema
186
16k
We Are The Robots
honzajavorek
0
180
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
160
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Skip the Path - Find Your Career Trail
mkilby
0
65
The Cult of Friendly URLs
andyhume
79
6.8k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
90
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Transcript
@igorflorianfs IGOR FLORIAN
TESTANDO SUA APLICAÇÃO WEB PHOENIX
ExUnit
http://elixir-lang.org/docs/stable/ex_unit/ExUnit.html
Channel
http://hexdocs.pm/phoenix/Phoenix.Channel.html
Overview
• Model • View & Template • Controller • Acceptance
• Fixture
✋
Nas camadas da aplicação você verá
None
web/web.ex
None
E nos testes…
None
Test Cases
None
None
None
None
MODEL
None
None
Foco nas validações
Changeset
None
None
None
https://hexdocs.pm/ecto/Ecto.Changeset.html
CONTROLLER
Características da conexão
None
None
Plug.Conn
None
https://hexdocs.pm/plug/Plug.Conn.html
None
None
VIEW & TEMPLATE
VIEWS == funções puras
None
None
TEMPLATES testamos diferente!
None
EEX
None
ACCEPTANCE
Hound
None
None
None
None
https://github.com/HashNuke/hound
Lembre-se, testes de aceitação são lentos
http://blog.plataformatec.com.br/2016/01/writing-acceptance-tests-in-phoenix/
Test Data
Ecto
None
ExMachina
FactoryGirl feelings
None
None
https://github.com/thoughtbot/ex_machina
Spoiler Ecto 2.0
None
None
None
https://github.com/elixir-lang/ecto
Obrigado!