使用Jenkins XCode插件运行测试的说明是设置测试目标(我已经完成),SDK(我已经完成)和配置(我没有尝试,调试和测试). 但是我一直在“……没有配置运行”. 我如何让它运行测试? 这是输出
但是我一直在“……没有配置运行”.
我如何让它运行测试?
这是输出:
+ xcodebuild -workspace /Users/MyDir/.Jenkins/jobs/MyTests/workspace/folder/MyWorkspace.xcworkspace -scheme MyTestScheme clean xcodebuild: 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 size Test Suite 'Multiple Selected Tests' started at 2013-08-28 18:10:26 +0000 Test Suite '/Users/MyDir/Library/Developer/Xcode/DerivedData/MyWorkspace-ctngidolzdhijvbymvghygtoaiiw/Build/Products/Debug-iphonesimulator/MyTestScheme.octest(Tests)' started at 2013-08-28 18:10:26 +0000 Test Suite 'MyTests' started at 2013-08-28 18:10:26 +0000 Test Case '-[MyTests test1]' started. 2013-08-28 11:10:26.029 otest[65917:303] MDN: (null) Test Case '-[MyTests testA1]' passed (0.346 seconds).对我来说问题是使用测试模式.应该使用调试模式.