Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 从命令行运行RTRT测试_Unit Testing_Continuous Integration_Command Line Interface_Stderr_Rtrt - Fatal编程技术网

Unit testing 从命令行运行RTRT测试

Unit testing 从命令行运行RTRT测试,unit-testing,continuous-integration,command-line-interface,stderr,rtrt,Unit Testing,Continuous Integration,Command Line Interface,Stderr,Rtrt,我们正在使用IBMRationalTestRealTime进行ANSI-C代码的单元测试。我的工作是让Jenkins服务器自动运行这些测试 建议应使用的命令行: studio -r <node>.{[.<node>]} <project_file> [-html <directory>] studio-r.{[.]}[-html] 不幸的是,使用任何其他参数运行studio-r,都不会向控制台输出任何内容。如果它没有执行预期的单元测试工作,它将

我们正在使用IBMRationalTestRealTime进行ANSI-C代码的单元测试。我的工作是让Jenkins服务器自动运行这些测试

建议应使用的命令行:

studio -r <node>.{[.<node>]} <project_file> [-html <directory>]
studio-r.{[.]}[-html]
不幸的是,使用任何其他参数运行
studio-r
,都不会向控制台输出任何内容。如果它没有执行预期的单元测试工作,它将立即终止,并且不会给出任何错误消息。这令人沮丧。可以从退出代码中推断错误类,但这还不足以进行故障排除

知道哪里可以找到错误输出吗?我找不到任何日志文件

详细的命令行语法, 但这种说法显然是不正确的:

所有消息都发送到标准错误输出设备

如果它成功运行,丢失控制台输出是可以容忍的,但是如果它无法运行测试,我真的,真的希望看到通常输出到RTRT主窗口的内容。注意:失败的单元测试
e、 g.在此上下文中,断言的测试运行被视为“成功”。

为什么不读取html报告文件中的数据?如果studio.exe失败,退出代码为0,例如,因为找不到RTP文件,则不会生成html。“未找到RTP”会有所帮助,但没有任何帮助。如果studio.exe失败,退出代码为5(例如,因为TDP未能连接到目标),则会生成HTML,并且除了执行时间之外,它不包含任何内容。这也无济于事。输出无法执行ssh的脚本会有所帮助,但没有什么…jenkins无法执行图形应用程序(除了JNSL?JNSP?)。您必须找到运行底层
attolxxx
命令的方法。