Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Created August 17, 2022 13:00
Show Gist options
  • Save mraaroncruz/d272df8b472e86b26876367518070a5d to your computer and use it in GitHub Desktop.
Save mraaroncruz/d272df8b472e86b26876367518070a5d to your computer and use it in GitHub Desktop.
ExUnit.run()
ExUnit.start(auto_run: false)
defmodule CalculatorTest do
use ExUnit.Case, async: false
describe "Testing the addition function" do
test "2 plus 3 is 5" do
assert 2 + 2 == 5
end
end
end
ExUnit.run()
IO.inspect({__ENV__, __ENV__.context_modules}, label: "__ENV__, context_modules")
CalculatorTest.__ex_unit__()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment