Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirnaeth/a04ec5a989ad4c4e06c6bf0bbdc3321b to your computer and use it in GitHub Desktop.
Save nirnaeth/a04ec5a989ad4c4e06c6bf0bbdc3321b to your computer and use it in GitHub Desktop.
Things I learned about ExUnit
Run tests:
mix test
Run single test file:
mix test path/to/file
Run single test:
mix test path/to/file:nn
Pending tests:
@tag :pending
test "//;\n1;2 is 3" do
assert 1+2 == StringCalculator.add("//;\n1;2")
end
mix test --exclude pending:true
Running tests in verbose mode:
mix test --trace
in config
config :ex_unit, trace: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment