4 ms·
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
by luiz-pv9 11y 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.
- hugoribeira 11y agoTrue. 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...
- jtmarmon 11y agoIf a macro used for a test suite is substantial enough and used often I'd say it's worth testing