In Elixir's ExUnit, is it possible to just run one test?
You can now do mix test path/to/test.exs:13
, where 13 is the line of the test.
Add a tag to a test (e.g. wip
) and run with the mix --only
flag.
@tag :wip
test "only run this test" do
assert true
end
Run as: mix test --only wip
This will only run tests with the defined tag, skipping all others.