I wrote a few tests for my Elixir project and put them in the test/
directory. Now that I run mix test
, I get:
$ mix test
Test patterns did not match any file:
That's it, there's nothing after that. Do I have to manually set the path for my tests? A quick Google search did not reveal anything.
This is what all of my tests look like:
# project_dir/test/my_app/some_module.exs
defmodule MyApp.SomeModule.Test do
use ExUnit.Case
doctest MyApp.SomeModule
test "method 1" do
assert MyApp.SomeModule.method_1_works?
end
test "method 2" do
assert MyApp.SomeModule.method_2_works?
end
end