我正在使用 EUnit 进行基本测试:
setup() ->
[1, 2].
teardown(_) ->
ended.
success([H, T]) ->
?_assert(H =:= 1),
?_assert(H =:= 2),
foo.
setup_test_() ->
{setup,
fun setup/0,
fun teardown/1,
fun success/1}.
而且我基本上没有得到输出的每一行(结果失败/通过除外):
2> erl_start:test().
undefined
*** test module not found ***
**foo
=======================================================
Failed: 0. Skipped: 0. Passed: 4.
One or more tests were cancelled.
error
3>
有人可以解释每一行的含义吗?