Using setup and foreach in eunit tests
3 Jan 2023 13:18
For when you want to run both per-suite and per-test setup and cleanup in eunit tests.
For when you want to run both per-suite and per-test setup and cleanup in eunit tests.
You’ve got an Erlang module with a private (not-exported) function, and you want to add some unit tests for that function? How should you do that?