Write Some Basic Tests
Learn a few basic tests in a Mix-created project.
We'll cover the following...
Elixir comes with a wonderful and simple testing framework called ExUnit.
Have a look at this code:
defmodule IssuesTest do
use ExUnit.Case
doctest Issues
test "greets the world" do
assert Issues.hello() == :world
end
end
It acts as a template for all the test files we write. We just copy and paste the boilerplate into separate test files as we need them. So, ...