I'm a newbie to Erlang just having gone through some tutorials on Erlang. Coming from TDD back-ground I thought I should follow some TDD principles in Erlang. I have organized my code as below
root |- tests | |- name_builder_tests.erl |- src | |- name_builder.erl I start Erlang shell in root directory. But I cannot compile my erl files from there so I have to switch to tests or src directories every time I make a change to one of those files and I need to compile them.
Is there any way I can tell shell to look for module in all the sub-directories when compiling modules or executing functions from particular modules? What I'm trying to ask is, if my shell is at root directory can I successfully execute following
c(name_builder). c(name_builder_tests).