Skip to content

Instantly share code, notes, and snippets.

@pdincau
Last active December 26, 2016 00:51
Show Gist options
  • Save pdincau/08f7b2fac39088c87b75 to your computer and use it in GitHub Desktop.
Save pdincau/08f7b2fac39088c87b75 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