Guard::Erlang automatically compile your erlang file & run Module:test()
HpyHacking
gem "guard-erlang", "~> 0.2.1"