- Tests are implemented as Elixir scripts, hence .exs file format
- ExUnit.start() starts ExUnit than runs the test
mix test
runs the tests
assert
-> truthy expressionrefute
-> falsy expression
- Example test
- Doc test
- Db test
- Mock test
- GenServer test
- Property test
unit_test
-> normal function testdoctests
-> tests the iex> block in the function documentation Extremely useful as it demonstrates the user how to use the library and tests at the same time.describe
-> to group block of tests with independent setup calls