Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemdro.id
elixir·ElixirbyParadox

Some Elixir testing Tricks

ExUnit is wonderful, and the functional paradigms that underpin Elixir let us write extremely complex tests in a fraction of the code that would be needed in OOP testing frameworks like RSpec.

But it's not all wine and roses. Tests can quickly accrue tons of boilerplate and repetition.

Using some Elixir features, you can cut down on these, and make tests even nicer to write.

https://pdx.su/blog/2023-06-14-some-elixir-test-tricksOpen linkView original on lemdro.id
2

No replies yet

No comments on the original post yet.
Some Elixir testing Tricks | Spyke