Understanding what happens when part of a supervision tree crashes is key to designing a supervision tree in your application.
#testingelixir#myelixirstatus
“This is even more important if you’re dealing with any time zone-based logic, as testing too far from a boundary can hide bad time-zone logic “ ~ Testing Elixir
#myelixirstatus#testingelixir
Lets say for example in your implementation you are comparing two date times, a time now and in the future . In the test, those dates can have one-second difference.
#myelixirstatus#testingelixir
New term learnt today , boundary testing .
Its a practice that is important when writing test for codes that does comparisons .
#myelixirstatus#testingelixir
You can simplify your test by using the context argument instead of pattern matching every variable in the setup to fetch what you need from it!
Docs: #module-context" target="_blank" rel="nofollow noopener">hexdocs.pm/ex_unit/1.12/E…
#myElixirStatus#TestingElixir#ExUnit
So.. I just realized I made the early praise section of the "Testing Elixir" book.. I still stand by every word of it. It's a must read for any engineer who wants to level up their Elixir skills! #ElixirLang#TestingElixir#myelixirstatus