ios - An error About Kiwi unit test -


i learning unit test.i going use kiwi framework.i wrote simple test code using kiwi blow:

#import <kiwi/kiwi.h>  spec_begin(simplestringspec)  describe(@"simplestring", ^{     context(@"when assigned 'hello world'", ^{         nsstring *greeting = @"hello world";         it(@"should exist", ^{             [[greeting shouldnot] benil];         });          it(@"should equal 'hello world'", ^{             [[greeting should] equal:@"hello world"];         });     }); });  spec_end 

when testing code, project crash error blow:

12:26:50.842 xctest_demo[8053:93923]    _xct_testbundlereadywithprotocolversion:minimumversion: reply received 12:26:50.852 xctest_demo[8053:93923] _ide_startexecutingtestplanwithprotocolversion:16 2016-05-25 12:26:50.856 xctest_demo[8053:93891] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '+[nsinvocation    _invocationwithmethodsignature:frame:]: method signature argument cannot nil' *** first throw call stack: ( 0   corefoundation                      0x0000000109a4dd85 __exceptionpreprocess + 165 1   libobjc.a.dylib                     0x0000000107949deb objc_exception_throw + 48 2   corefoundation                      0x000000010990d71d +[nsinvocation _invocationwithmethodsignature:frame:] + 333 3   xctest                              0x0000000111b38ea9 -[xctestcase initwithselector:] + 167 4   xctest                              0x0000000111b38f08 +[xctestcase testcasewithselector:] + 43 5   xctest                              0x0000000111b374cb +[xctestsuite testsuitefortestcasewithname:] + 344 6   xctest                              0x0000000111b38181 -[xctestsuite _initwithtestconfiguration:] + 508 7   xctest                              0x0000000111b38674 +[xctestsuite testsuitefortestconfiguration:] + 50 8   xctest                              0x0000000111b24979 -[xctestdriver _runsuite] + 233 9   xctest                              0x0000000111b257d1 -[xctestdriver _checkfortestmanager] + 259 10  xctest                              0x0000000111b6fa9a _xctestmain + 628 11  corefoundation                      0x00000001099732ec __cfrunloop_is_calling_out_to_a_block__ + 12 12  corefoundation                      0x0000000109968f75 __cfrunloopdoblocks + 341 13  corefoundation                      0x00000001099686d2 __cfrunlooprun + 850 14  corefoundation                      0x00000001099680f8 cfrunlooprunspecific + 488 15  graphicsservices                    0x000000010b74bad2 gseventrunmodal + 161 16  uikit                               0x0000000107daef09 uiapplicationmain + 171 17  xctest_demo                         0x0000000107456c5f main + 111 18  libdyld.dylib                       0x000000010a6a592d start + 1 19  ???                                 0x0000000000000005 0x0 + 5 ) libc++abi.dylib: terminating uncaught exception of type nsexception 

what's wrong?


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -