【发布时间】:2013-10-06 15:03:18
【问题描述】:
我整天都在努力寻找答案,但我什么也没找到。 我使用 test::more (test1.t, test2.t, test3.t ...) 编写了一些测试。 我编写了一个主 perl 脚本 (main.pl),它使用 TAP::Harness 处理所有测试,并使用 formatter_class=> 'TAP::Formatter: 以 JUnit 格式打印输出: :JUnit。 在我的测试中,我使用了 BAIL_OUT 函数。 问题是当测试被保释时,主脚本也退出并且根本没有输出。例如,如果 test3.t bailed_out,我需要查看 test1.t 和 test2.t 的结果。我该怎么做?
我不能使用 exit 或 die 代替 BAIL_OUT,因为我不希望其他测试继续进行。 (如果 test3.t 是 BAIL_OUT,我不希望 test4.t 运行。)
有人可以帮我吗? 我需要查看在救助测试之前运行的测试的结果。
谢谢。
【问题讨论】:
标签: perl testing junit formatter tap-harness