[erlang-questions] TDD, Erlang and Emacs
Fri Mar 2 01:42:26 CET 2012
On Thu, Mar 1, 2012 at 5:24 PM, Jayson Barley <jayson.barley@REDACTED> wrote:
> I am wondering if anyone has any recommendations for a smoother TDD
> experience with Erlang and Emacs. I am finding the process to be less than
> optimal. The way I am doing it now is that I have 3 windows open.
> In my test module I write my test
> Switch to the Erlang buffer
> Run my tests, see that it fails
> Switch to the module under test buffer, write code to get the test to pass
> Switch back to the Erlang buffer, run my tests again
> Switch back to the test buffer and repeat.
> Ideally I would like to have 2 windows open, 1 for the module under test and
> the other for the test window. From the module under test buffer or the test
> module I should be able to run the tests, see that they pass or fail and
> then move on.I have been considering writing an plugin to handle this
> functionality for me. Before I go that route I want to make sure I am not
> duplicating what someone else has already done.
Take a look at the 'reloader' module in Mochiweb. It watches for
changes to a module (recompile), reloads the module, and runs any
tests, if exported.
More information about the erlang-questions