Hey, I’m trying to test a function that uses the elixir_uuid library, which in turn requires erlang’s crypto library. When I run my tests, it’s not able to find the UUID namespace. During the compile phase before running the tests, I get the errors similar to the following, which is most likely the cause of this error:
Warning: :crypto.hash/2 defined in application :crypto is used by the current application but the current application does not depend on :crypto. To fix this, you must do one of:
1. If :crypto is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
But :crypto is added under :extra_applications in my mix.exs, and it works fine when I’m running in development and production. Is there an extra step I need to take to get this working in the test environment?
def application do
[
mod: {MyApp.Application, []},
extra_applications: [:logger, :runtime_tools, :crypto]
]
end