SwiftyMocky is Lightweight, strongly typed framework for Mockito-like unit testing experience. As Swift doesn't support reflections well enough to allow building mocks in runtime, library depends on Sourcery, that scans your source code and generates Swift code for you.
The idea of SwiftyMocky is to mock Swift protocols. The main features are: - easy syntax, utilising full power of auto-complete, which makes writing test easier and faster - it DO support generics - mock implementations generation - a way to specify what mock will return (given) - possibility to specify different return values for different attributes - record stubbed return values sequence - verify, whether a method was called on mock or not - check method invocations with specified attributes - it works with real device
SwiftyMocky alternatives and related libraries
Based on the "TDD / BDD" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of SwiftyMocky or a related project?
SwiftyMocky RecommendationsThere are no recommendations yet. Be the first to promote SwiftyMocky!
Have you used SwiftyMocky? Share your experience. Write a short recommendation and SwiftyMocky, you and your project will be promoted on Awesome iOS.
Recently added SwiftyMocky resources
Be the first to add one!