但是我一直在“……没有配置运行”.
我如何让它运行测试?
这是输出:
+ xcodebuild -workspace /Users/MyDir/.Jenkins/jobs/MyTests/workspace/folder/MyWorkspace.xcworkspace -scheme MyTestScheme cleanxcodebuild: error: Failed to build workspace MyWorkspace with scheme MyTestScheme. Reason: Scheme "MyTestScheme" is not configured for running.
如果在XCode for MyTestScheme中如果我选择Product / Run然后我得到相同的错误消息,但如果我选择Product / Test,那么测试代码会成功执行. Xcode中成功运行的输出是:
2013-08-28 11:10:25.828 otest[65917:303] UnkNown Device Type. Using UIUserInterfaceIdiomPhone based on screen sizeTest Suite 'Multiple Selected Tests' started at 2013-08-28 18:10:26 +0000Test Suite '/Users/MyDir/library/Developer/Xcode/DerivedData/MyWorkspace-ctngIDolzdhijvbymvghygtoaiiw/Build/Products/DeBUG-iphonesimulator/MyTestScheme.octest(Tests)' started at 2013-08-28 18:10:26 +0000Test Suite 'MyTests' started at 2013-08-28 18:10:26 +0000Test Case '-[MyTests test1]' started.2013-08-28 11:10:26.029 otest[65917:303] MDN: (null)Test Case '-[MyTests testA1]' passed (0.346 seconds).解决方法 对我来说问题是使用测试模式.应该使用调试模式. 总结
以上是内存溢出为你收集整理的如何配置XCode Jenkins插件来运行测试?全部内容,希望文章能够帮你解决如何配置XCode Jenkins插件来运行测试?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)