How to test a Phoenix application with Bypass?

You don’t need to start MyApp.Application manually. mix does this for you. Check mix.exs file, probably it has something like this:

def application do
  [
    mod: {MyApp.Application, []},
    # ...
  ]
end

Bypass started a server using port 5112, but you’re making requests to 4000