Phoenix JSON API acceptance testing

What I was looking for was a way to run a bunch of tests against a staging environment using “real” HTTP requests.

How would someone go about organising code in a Phoenix project for something like that? I am assuming it wouldn’t go under the standard test folder, as these tests are ran very seldom (and require a “real” webserver to test against) but I would like to use ExUnit to manage them.

An ideal solution for me would be something like:

mix test.acceptance http://staging-url

Is there something already like that?

Any suggestions or comments would be greatly appreciated.