我正在尝试运行我的第一个 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
测试:
#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
这是Podfile
platform :ios, '6.0'
target :KiwiProTests, :exclusive => true do
pod 'Kiwi', '~> 2.0'
end
我认为没有编译测试。在下面的链接中,我的 Kiwi 项目和测试可用。
投递箱上的项目
https://dl.dropboxusercontent.com/u/11493275/Tmp/KiwiPro.zip
先感谢您。