如果无法编译Common Test套件,则运行失败

时间:2015-07-10 12:18:03

标签: erlang common-test

如果我的某个公共测试套件中出现语法错误,ct_run只需等待15秒然后继续。它显示以下消息:

{error,make_failed}

Failed to compile or locate one or more test suites
Press 'c' to continue or 'a' to abort.
Will continue in 15 seconds if no answer is given!
(c/a)

如果我使用-noshell,则会显示:

{error,make_failed}

......无论如何都要继续。

如果编译失败,如何使中止

1 个答案:

答案 0 :(得分:1)

答案是here。当ct_run遇到编译错误时,它会尝试询问您是否要继续。 continue/2函数执行dirty trick以确定测试是否以交互方式运行。但是你可以通过-noshell模拟器选项来欺骗这个函数。在这种情况下,continue/2函数将make decision基于-abort_if_missing_suites

所以,你需要ct_run -abort_if_missing_suites -erl_args -noshell

相关问题