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

1

9

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.

Aleph answered 3/11, 2017 at 9:16 Comment(0)
P
18

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

fail("Expecting to get failure callback")

You can find the source code here.

Paramorphism answered 8/11, 2017 at 4:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.