Nimble: Any way to test that fatalError() is called?

I’m testing failure cases in my code, and it doesn’t look like Nimble provides a way to assert that a given block will call fatalError(). Is that correct? If so, it seems that would be a useful thing to have.

This Stack Overflow question has a couple of answers that might provide solutions: http://stackoverflow.com/questions/32873212/unit-test-fatalerror-in-swift

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (14 by maintainers)

Commits related to this issue

Most upvoted comments

I thought I had something…

disappointment

I made a pull request to implement this, when someone has a chance to take a look! I’ve got some issues and questions.