How to test phoenix controller?

Exhausted:

https://hexdocs.pm/phoenix/testing_controllers.html
https://hexdocs.pm/phoenix/Phoenix.ConnTest.html#module-controller-testing
https://hexdocs.pm/phoenix/Phoenix.ConnTest.html#html_response/2

yet?

Programming Phoenix 1.4 has a Testing MVC - Integration Tests for Views and Controllers section
https://github.com/EQuimper/programming-phoenix-1.4/tree/master/test/rumbl_web/controllers

Though of course none of that addresses testing the frontend controllers that use an http-API.

1 Like