sewer_r4t
How to test phoenix controller?
Mix 1.8.1 (compiled with Erlang/OTP 21)
Phoenix v1.3.4
I made an phoenix app (frontend) as the (View Controller) and separate another phoenix app that only has API (Model).
Any recommendation how to test a phoenix controller on rendering and redirections?
First Post!
chokchit
Most Liked
peerreynders
Exhausted:
yet?
Programming Phoenix 1.4 has a Testing MVC - Integration Tests for Views and Controllers section
programming-phoenix-1.4/test/rumbl_web/controllers at master · EQuimper/programming-phoenix-1.4 · GitHub
Though of course none of that addresses testing the frontend controllers that use an http-API.
benwilson512
If you’re doing it over HTTP the thing you’re going to lose vs doing it all in one application is the out of the box per test case database isolation. However if you port How to Add Concurrent, Transactional End-To-End Tests in a Phoenix-Powered Ember App - DockYard you’ll get that too.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









