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
Igor Florian
January 30, 2016
Programming
1
240
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
250
Other Decks in Programming
See All in Programming
SQL Server 2025 LT
odashinsuke
0
160
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
120
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.2k
dchart: charts from deck markup
ajstarks
3
960
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
170
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
250
CSC307 Lecture 01
javiergs
PRO
0
670
TestingOsaka6_Ozono
o3
0
270
2年のAppleウォレットパス開発の振り返り
muno92
PRO
0
180
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
320
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.5k
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
360
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Exploring anti-patterns in Rails
aemeredith
2
230
Digital Ethics as a Driver of Design Innovation
axbom
PRO
0
140
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
99
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
120
Code Review Best Practice
trishagee
74
19k
The Curious Case for Waylosing
cassininazir
0
210
Six Lessons from altMBA
skipperchong
29
4.1k
Tell your own story through comics
letsgokoyo
1
780
How to build a perfect <img>
jonoalderson
1
4.8k
We Are The Robots
honzajavorek
0
130
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!