我想在使用ct:print
的测试套件中打印一些消息,但是当我使用>rebar3 ct
运行测试套件时,控制台将警告显示为ct_logs not started
,然后显示错误报告被打印出来。
错误报告如下:
=ERROR REPORT==== 17-Oct-2019::12:17:11.297864 ===
** Generic server test_server_ctrl terminating
** Last message in was {'EXIT',<0.306.0>,
{noproc,
{gen_server,call,
[test_server_io,
{set_job_name,undefined},
infinity]}}}
如何启动ct_logs以在测试套件中打印消息?