Jenkins和Xcode5单元测试目标 - 没有测试输出?(Jenkins and Xcode5 unit test target - no test output?)
我正在将Jenkins CI服务器从XCode 4.6升级到XCode 5和iOS SDK 7。
要运行单元测试,我现在必须使用
xcodebuild test
。 我将此命令的输出传递给Ruby脚本,该脚本生成测试报告。升级后,此功能不再起作用。 我认为问题在于
xcodebuild test
启动了一个实际运行测试的新进程。 我日志中的最后一条语句是/bin/sh -c /Volumes/Data/Jenkins/jobs/MyProject-Unit/workspace/Build/Intermediates/Redacted.build/Debug-iphonesimulator/UnitTests.build/Script-261C7EA912FD9A4B00F7A53E.sh
在Jenkins日志中找不到该点之后的输出,但是当我在自己的机器上运行它时,我会在控制台中打印测试结果。
这里发生了什么,我怎样才能得到测试报告?
I am upgrading a Jenkins CI server from XCode 4.6 to XCode 5 and iOS SDK 7.
To run unit tests, I must now use
xcodebuild test
. I am piping the output of this command to a Ruby script, that generates test reports.This does not work any longer after the upgrade. I think the problem lies in the fact that
xcodebuild test
launches a new process to actually run the tests. The last statement in my log is/bin/sh -c /Volumes/Data/Jenkins/jobs/MyProject-Unit/workspace/Build/Intermediates/Redacted.build/Debug-iphonesimulator/UnitTests.build/Script-261C7EA912FD9A4B00F7A53E.sh
The output after that point can not be found in the Jenkins log, but when I run it on my own machine, I get the test results printed in the console.
What is happening here, and how can I get the test reports back ?
原文:https://stackoverflow.com/questions/18824362
最满意答案
嗨,当您使用除当前程序集之外的程序集时,还需要指定程序集以及命名空间
xmlns:SiriusMicrotech="clrnamespace:SiriusMicrotech.core.UI;assembly=AssemblyName....."
我希望这将有所帮助。
Hi you also need to specify the Assembly along with namespace when you use assembly other than current assembly
xmlns:SiriusMicrotech="clrnamespace:SiriusMicrotech.core.UI;assembly=AssemblyName....."
I hope this will help.
相关问答
更多-
SecondPage类可能位于命名空间中,您需要使用using语句添加。 这可能是问题的原因。 要进一步检查,您可以发布更多代码。 SecondPage class may be in a namespace, that you need to add by the using statement. This may be the reason for the problem. To check it further, You can post some more code.
-
这是因为模棱两可的问题。 我从引用中删除了Microsoft.Contracts。 现在它的工作正常。 谢谢弗雷宾弗朗西斯先生的支持。 It is happened because of an ambiguity issue. I removed Microsoft.Contracts from reference. Now its working fine. Thanks Mr.Frebin Francis for your support.
-
嗨,当您使用除当前程序集之外的程序集时,还需要指定程序集以及命名空间 xmlns:SiriusMicrotech="clrnamespace:SiriusMicrotech.core.UI;assembly=AssemblyName....." 我希望这将有所帮助。 Hi you also need to specify the Assembly along with namespace when you use assembly other than current assembly xmlns:Sir ...
-
从HousingSurvey项目中删除对BusinessLib的引用,然后重新添加。 原始引用的文件路径可能存在问题。 此外,当您再次添加对项目的引用时,请务必将“复制本地”属性设置为True 在解决方案资源管理器中,单击“显示所有文件”按钮以显示“引用”节点。 打开项目的“引用”节点。 右键单击“引用”列表中的引用,然后单击“属性”。 与该引用关联的属性显示在“属性”窗口的列表中。 从左侧列中选择“复制本地”,然后单击右侧列中的箭头将值更改为“True”或“False”。 From the Housing ...
-
谢谢Machinarius ( 编辑 :和Alex K. )我从你的答案中得到了解决...与泛型混淆了。 回答: public static string EnumNameToString
(T enumActual) { return Enum.GetName( typeof( T ), enumActual ); } 使用如下: string str = Helper.EnumNameToString ( eEnumType.eEnum0 ); 完美的作品。 谢谢 ... -
在3.5.0中,RabbitMqdotNet的人用EventHandler替换了BasicAckEventHandler类型,看看我最后如何编写我的发布者。 感谢@Chris Dunaway的评论指出了这个链接 public bool publish(string message) { var appSettings = config.getAppSettings(); string HostName = appSettings["RABBITMQ_HOST ...
-
尝试公开BaseClass 。 namespace SportsBaseClasses { public class BaseClass { Try making BaseClass public. namespace SportsBaseClasses { public class BaseClass {
-
我假设你按照这篇文章中的说明进行操作 在帖子中有一条指令,您将c ++项目添加到名为Sqlite的解决方案中。 你从github得到它。 不可否认,这很好地隐藏在帖子中,很容易错过。 将c ++项目包含到解决方案后,您应该从C#项目中添加对它的引用。 添加引用 - >解决方案 - >选择c ++“Sqlite”项目作为参考 之后,添加构建常量USE_WP8_NATIVE_SQLITE应该可以正常工作。 确保设置了条件编译符号: USE_WP8_NATIVE_SQLITE和release是x86 or ARM ...
-
可能你没有using System.Web.Mvc; 在代码顶部包含此命名空间。 Possibly you have not included using System.Web.Mvc; Include this namespace at the top of your code.
-
你应该参考下面的程序集 命名空间 :Microsoft.SqlServer.Management.Common 程序集 :Microsoft.SqlServer.ConnectionInfo(在Microsoft.SqlServer.ConnectionInfo.dll中) 在这里找到更多 You should refer to the below assembly Namespace: Microsoft.SqlServer.Management.Common Assembly: Microsoft.Sq ...