Tom*_*ulc 3 configuration unit-testing ios kiwi
我正在尝试进行我的第一次新西兰测试.我使用Xcode 5和Kiwi 2.0 for iOS(通过Cocoapods安装).我写了一些测试但是当我在控制台中按'cmd + u'输出时如下所示:
日志
2013-09-25 19:17:04.347 KiwiPro[36355:a0b] Cannot find executable for CFBundle 0xc1665d0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
Test Suite 'All tests' started at 2013-09-25 17:17:04 +0000
Test Suite 'All tests' finished at 2013-09-25 17:17:04 +0000.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
Run Code Online (Sandbox Code Playgroud)
测试:
#import "Kiwi.h"
#import "Person.h"
SPEC_BEGIN(MySpec)
describe(@"When Person born", ^{
Person *person = [Person new];
it(@"Should be age of 0", ^{
[[theValue([person age]) should] equal:theValue(0)];
});
});
SPEC_END
Run Code Online (Sandbox Code Playgroud)
这是Podfile
platform :ios, '6.0'
target :KiwiProTests, :exclusive => true do
pod 'Kiwi', '~> 2.0'
end
Run Code Online (Sandbox Code Playgroud)
我认为测试没有编译.在linke下面我的项目与Kiwi和测试可用.
Dropbox项目
https://dl.dropboxusercontent.com/u/11493275/Tmp/KiwiPro.zip
先感谢您.
Vik*_*Vik 10
这也发生在我今天.使用时Xcode 5,您必须将单元测试目标设置为OCUnit,或者您可以轻松更改窗格Kiwi/XCTest