News for hackers. Stuff that matters.
Re:DRYing Elixir Tests with Macros by ninjakeyboard on Wednesday February 17, 2016 @08:02AM (#11117538)
This is a very cool demo of use of macros.

On testing, I think DRY principles are a good thing in your production code but I don't believe there is anything wrong with having lots of repetition in your test code. Each test can be read from front to back by the reader. If you have to wander around trying to understand the design of the test then that may not be ideal. Shouldn't need unit testing for your unit tests :P

There are no comments on this comment yet.