Skip to content

Instantly share code, notes, and snippets.

@coryodaniel
Last active June 16, 2019 16:46
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 coryodaniel/277df80799d2efbaa22c643910e22010 to your computer and use it in GitHub Desktop.
Save coryodaniel/277df80799d2efbaa22c643910e22010 to your computer and use it in GitHub Desktop.
ExUnit Unique Test Identifier
# I forget how to get the test "id" constantly.
defmodule FooTest do
@moduledoc false
use ExUnit.Case, async: true
test "show that ID", ctx do
IO.puts ctx[:test]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment