I'm following this tutorial: http://elixir-lang.org/getting-started/mix-otp/agent.html
So in my Elixir project I have a module lib/kv/bucket.exs
, and a test for it test/kv/bucket_test.exs
.
When I'm running mix test, I get the following error: ** (UndefinedFunctionError) undefined function KV.Bucket.start_link/0 (module KV.Bucket is not available)
Am I missing something?
bucket.ex
in thetest
directory instead of thekv/lib/kv/
directory (which I had to create).$ mix test
will take care of compiling thelib/
files – Sonar