arjan / decorator

Function decorators for Elixir
MIT License
386 stars 21 forks source link

separate tests and helper modules #9

Closed sobolevn closed 7 years ago

sobolevn commented 7 years ago

This is such a cool library! Thanks for it.

When I have started looking through tests, one thing caught my eye: mixing tests and helper modules together. In general they are divided. What do you think of it?

If that fine by you, I will send a PR.

arjan commented 7 years ago

Do you mean putting the decorator implementations in a separate file? I'm not sure sure about that because this way it's clear that the tests are testing what the decorators are producing, if you know what I mean.

It makes sense to split the test case into several separate cases, with one decorator module and one module using the decorators per test case. The file is indeed quite large now. Something like: