Hacker News new | ask | show | jobs
by luiz-pv9 3780 days ago
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.

2 comments

If a macro used for a test suite is substantial enough and used often I'd say it's worth testing
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...