简体   繁体   English

我可以在ant jUnit任务下运行perl单元测试吗? 如何处理ant build脚本中的perl单元测试错误?

[英]Can I run perl unit tests under ant jUnit task? How can I handle perl unit tests errors within ant build script?

I'd like to deploy my set of perl scripts by ant. 我想通过ant部署我的perl脚本集。

I'm going to run perl test scripts in the ant build.xml and I want to handle perl errors. 我将在ant build.xml中运行perl测试脚本,我想处理perl错误。

That's why I wonder, how does ant task work? 这就是为什么我想知道,蚂蚁任务如何工作?

Does junit parse output of tests? junit会解析测试的输出吗?

In this case I can transform TAP output within TAP::Formatter::JUnit CPAN module. 在这种情况下,我可以在TAP :: Formatter :: JUnit CPAN模块内转换TAP输出。

http://search.cpan.org/dist/TAP-Formatter-JUnit/lib/TAP/Formatter/JUnit.pm http://search.cpan.org/dist/TAP-Formatter-JUnit/lib/TAP/Formatter/JUnit.pm

Or, may be, ant task handles some system messages. 或者,可能是ant任务处理了一些系统消息。

In this case I will not be able to conjugate perl testing and junit handling. 在这种情况下,我将无法结合perl测试和junit处理。

To say simplier, how can I "implant" perl module installing procedure (I use Module::Build) into my Apache Ant build script to handle perl tests errors? 简单地说,如何将Perl模块安装过程(我使用Module :: Build)“植入”我的Apache Ant构建脚本中以处理Perl测试错误?

如果测试步骤失败,则返回非零退出代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM