Phoenix JSON API acceptance testing

So it looks like you want to bundle a suite of smoke tests with your app so that when you deploy it you can run it on the server. Did it get that right?

Yes. Although the tests don’t need to ship with the app. (They can be left out when doing a prod build)

Otherwise I’m not sure why you’d like to integrate those tests with your Phoenix project.

My reasoning is to keep the tests and project together. I’d rather manage 1 repository than 2. Also, the changeset history will all remain in 1 timeline.

I’d also consider using a different technology for that.

I have done that in the past, using Python + HTTPie. It was OK, but you end up needing two environments on your machine, and you are dealing with switching between two languages. I would much prefer everything in 1 language.

using HTTP client with ExUnit’s assertions wrapped in a mix task makes sense.

OK, that’s great. I will probably create a separate Elixir project next to the existing one. That way they share nothing and I can keep them versioned together.

Thanks.