Nimble
A Matcher Framework for Swift and Objective-C
Use Nimble to express the expected outcomes of Swift or Objective-C expressions. Inspired by Cedar. Apple's Xcode includes the XCTest framework, which provides assertion macros to test whether code behaves properly. XCTest assertions have a couple of drawbacks. Not enough macros. There's no easy way to assert that a string contains a particular substring, or that a number is less than or equal to another. It's hard to write asynchronous tests. XCTest forces you to write a lot of boilerplate code. Nimble addresses these concerns. Would you like to add more information to the test's failure messages? Use the description optional argument to add your own text. Nimble makes sure you don't compare two types that don't match. Tired of so much typing? With Nimble, you can use overloaded operators like == for equivalence, or > for comparisons.