Tests as docs? π€
Tests can serve as documentation. But the default `mix test` command doesn't print them out in a way that has clear information. Thankfully, there are two flags that can make it really nice.
Tests can serve as documentation. But the default `mix test` command doesn't print them out in a way that has clear information. Thankfully, there are two flags that can make it really nice.
If I asked you what ExUnitβs `--seed` option does, you'd probably say 'randomize the order of tests', right? And that's right. But it turns out it does more!
What do you do when you want a temp directory in your tests? ExUnit's got your back with one simple trick!
Prior to Elixir 1.16 we couldn't run multiple test files with their line numbers. With Elixir 1.16, we can!
I imagine many think ExUnit just does some type of scripting to run tests. But itβs a full Elixir app! Check it out.
Sometimes we need unique values in our tests. There's a nice ExUnit trick we can use.