I'm currently learning Erlang and was wondering about what are some good practices or conventions for unit testing? I am currently using eunit.
To frame this question:
I'm currently writing one unit test module for each function, that way my test names are quite straight forward and take the form of should_do_desired_behaviour_test().
I started with one module for each module I was writing, but didn't feel right, as naming test became more and more unwieldy, and test modules felt disorganized.
The problem I am foreseeing with the approach I've taken is that I'm going to end up with many modules, which need to be executed. I will then need some kind of global module to run all tests in each test module.
So I guess I'm not quite sure what approach to take, or if I'm even remotely on the right track with this. How do you typically manage unit tests?
Cheers.