Sagarika Barman
Sagarika Barman

Reputation: 115

Is there an XCTFail() equivalent in Quick-Nimble framework?

For a particular case, I need to generate failure of test case unconditionally in Quick-Nimble framework. How do I do this? An equivalent of XCTFail("Expecting to get failure callback") would be helpful.

Upvotes: 9

Views: 2450

Answers (1)

mokagio
mokagio

Reputation: 17471

Yes. It's part of Nimble, and it's called fail.

fail("Expecting to get failure callback")

You can find the source code here.

Upvotes: 18

Related Questions