8

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.

mokagio
  • 16,391
  • 3
  • 51
  • 58

1 Answers1

16

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

fail("Expecting to get failure callback")

You can find the source code here.

mokagio
  • 16,391
  • 3
  • 51
  • 58