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.

Features

  • Nimble can test whether an expression raises an exception once evaluated
  • Some testing frameworks make it hard to test primitive C values, but in Nimble, it just works
  • Nimble uses type inference, so you can write the above without explicitly specifying both types
  • In Nimble, it's easy to make expectations on values that are updated asynchronously
  • You can also provide a callback by using the waitUntil function
  • Nimble has full support for Objective-C

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

Apache License V2.0

Follow Nimble

Nimble Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Nimble!

Additional Project Details

Operating Systems

Linux

Programming Language

Objective C, Swift

Related Categories

Objective C Frameworks, Swift Frameworks

Registered

2022-01-31