how to use rebar to create an erlang module with an eunit test?
问题 My goal is quite simple; while I am learning Erlang, I would like to use rebar to create a basic module with an eunit test: I have tried the following: mkdir erlangscratch cd erlangscratch rebar create template=simplemod modid=erlangscratch Edit the 'test/erlangscratch_tests.erl' to look like this: -module(erlangscratch_tests). -include_lib("eunit/include/eunit.hrl"). % This should fail basic_test_() -> ?assert(1 =:= 2). Execute the tests: snowch@tp:~/erlangscratch$ rebar co eu ==>