Open kianmeng opened 3 years ago
This happened to me initially as well. I was missing the environment values in my test environment that the test configuration file is looking for. This error message is unfortunate for the situation!
Besides setting those env vars (make sure you're setting them in your MIX_ENV=test
environment), you can verify this is the cause by testing with this config/test.exs
:
use Mix.Config
config :ex_twilio,
account_sid: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
auth_token: "xxxxxxxxxxxx",
workspace_sid: {:system, "TWILIO_TEST_WORKSPACE_SID"}
config :logger, level: :info
Setting the account_sid
and auth_token
to the values above allowed the tests to pass locally for me after encountering the error OP mentioned.
I've checked the documentation but couldn't find instruction for setting the required environment variables for running the test locally. Did I miss out or overlook something?
Elixir / Erlang OTP environment:
Result of the test: