Controller test with custom URL

Is there any way to specify remote URL and perform request on remote instance. For example I expect something like

  conn = Phoenix.ConnTest.build_conn(:get, "http://localhost:3000/", nil) 

And my

conn = post conn, user_path(conn, :index)

Will create a regular http request and execute it.

The phoenix test helpers never make any actual HTTP requests, nor is phoenix or plug an HTTP client. It seems like you might want something like HTTPoison.

If you want to test websites and less so api endpoints also take a look at wallaby or hound.