Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 猕猴桃试验的强迫失败_Ios_Unit Testing_Kiwi - Fatal编程技术网

Ios 猕猴桃试验的强迫失败

Ios 猕猴桃试验的强迫失败,ios,unit-testing,kiwi,Ios,Unit Testing,Kiwi,是否有办法强制Kiwi测试失败,即等效于XCTFail() 我可以写一些像这样的东西 [@"" should] beNil] 这总是会失败,但我认为Kiwi必须在框架中加入一些更能表达开发人员意图的东西。是的,您可以使用fail()宏: fail(@"message");

是否有办法强制Kiwi测试失败,即等效于XCTFail()

我可以写一些像这样的东西

[@"" should] beNil]

这总是会失败,但我认为Kiwi必须在框架中加入一些更能表达开发人员意图的东西。

是的,您可以使用
fail()
宏:

fail(@"message");