如何在Jenkins的testng插件中显示stacktrace?
我有一份jenkins的工作,这份工作有一个编写xml报告的脚本。xml与此示例相同:如何在Jenkins的testng插件中显示stacktrace?,jenkins,testng,jenkins-plugins,Jenkins,Testng,Jenkins Plugins,我有一份jenkins的工作,这份工作有一个编写xml报告的脚本。xml与此示例相同: <testng-results> <reporter-output> </reporter-output> <suite name="suite0" failures="0" tests="0"> <test name="testcase1">
<testng-results>
<reporter-output>
</reporter-output>
<suite name="suite0" failures="0" tests="0">
<test name="testcase1">
<class name="testcase1.class">
<test-method name="test1" started-at="2013-10-07T16:20:51Z" finished-at="2013-10-07T16:20:53Z" duration-ms="2754" status="PASS">
</test-method>
</class>
</test>
<test name="test2">
<class name="test2.class">
<test-method name="testcase2" started-at="2013-10-07T16:21:14Z" finished-at="2013-10-07T16:21:19Z" duration-ms="4163" status="FAIL">
<short-stacktrace>description of the error with a lot of information....
</short-stacktrace>
</test-method>
</class>
</test>
</suite>
</testng-results>
包含大量信息的错误描述。。。。
testNgplugin读取此xml,并向我显示持续时间为nº的测试失败并通过。但是失败的测试没有向我显示stacktrace…?有没有一种方法可以在Jenkins中向用户显示错误描述?我必须使用什么标签