News for hackers. Stuff that matters.
Re:DRYing Elixir Tests with Macros by luiz-pv9 on Wednesday February 17, 2016 @07:34AM (#11117386)
I'm always very careful when placing code supporting the test outside of the test itself. Setup and teardown functions are fine, but I prefer to be safe because, well, you can't test the test.

-- I'm not saying this is the case in the blog post. Just some thoughts.

Re:DRYing Elixir Tests with Macros by jtmarmon on Wednesday February 17, 2016 @07:57AM (#11117515)
If a macro used for a test suite is substantial enough and used often I'd say it's worth testing
Re:DRYing Elixir Tests with Macros by hugoribeira on Wednesday February 17, 2016 @07:51AM (#11117479)
True. It's an Elixir best practice to keep macro definitions short and basically make them invoke functions as match as possible.

No perfect answer I guess...