私は 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>
誰かが各行の意味を説明できますか?