如何通过eunit获取更多详细信息

时间:2013-09-12 15:29:23

标签: unit-testing erlang eunit

我做了一个测试,得到了eunit的以下输出:

dba_test:35: mnesia_dba_test_ (DBA can start mnesia)...*failed*
in function dba_test:'-mnesia_dba_test_/0-fun-2-'/0 (test/dba_test.erl, line 35)
**error:{assertMatch_failed,
    [{module,dba_test},
     {line,35},
     {expression,
         "nemo : connect ( nm_mnesia_storage , testdba , [ fluid ] , [ ] )"},
     {pattern,"{ ok , # nemodba { } }"},
     {value,
         {error,
             {{'EXIT',
                  {{badmatch,{error,{...}}},
                   [{nm_dba_fluid,start_link,...},
                    {supervisor,...},
                    {...}|...]}},
              {child,undefined,testdba,
                  {nm_dba_fluid,start_link,...},
                  permanent,5000,...}}}}]}

我想知道如何获得有关badmatch的更多信息:我无法弄清楚我只是忘了创建一个nm_mnesia_storage模块,这就是我的主管无法启动子进程的原因.. < / p>

这是我目前的命令:

rebar skip_deps=true verbose=1 eunit

那么,如何让EUnit更加详细?

谢谢!

0 个答案:

没有答案