Configuring an Ecto App for Testing

The default mix.exs created by the generators has this task alias:

test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]

The message you’re getting suggests that the ecto.create step is failing before any tests even get a chance to run.