jbelkins
jbelkins

Reputation: 620

Forcing failure of a Kiwi test

Is there a way to force failure in a Kiwi test, i.e. the equivalent of XCTFail().

I can write something like

[@"" should] beNil]

that will always fail but I was figuring Kiwi must have something a little more expressive of the developer's intent baked into the framework.

Upvotes: 1

Views: 130

Answers (1)

Adam Sharp
Adam Sharp

Reputation: 3668

Yep, you can use the fail() macro:

fail(@"message");

Upvotes: 3

Related Questions