Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Kiwi 测试中强制失败,即相当于 XCTFail()。
我可以写类似的东西
[@"" should] beNil]
这总是会失败,但我认为 Kiwi 必须在框架中加入一些更能表达开发者意图的东西。
是的,您可以使用fail()宏:
fail()
fail(@"message");