📦 EasyMock 1.0.0
🚀 What's New
Welcome to the first official release of EasyMock, a lightweight and expressive mocking library built for Swift!
This version introduces core features designed to make unit testing more effective and readable, especially for asynchronous workflows and error handling.
✨ Highlights
- Mock: Synchronous test double with input/output stubbing and call tracking (spies).
- AsyncMock: Support for
async/await
, great for testing suspending functions. - ThrowableMock: Simulate thrown errors for negative test scenarios.
- AsyncThrowableMock: Combine the power of async and error simulation with optional delay injection.
💡 Use Cases
- Replace verbose manual mocks with simple, expressive wrappers.
- Easily verify call count, parameters, and return values.
- Simulate network delays or error states without external dependencies.
✅ Supported Platforms
- iOS 13+
- macOS 10.15+
- Swift 5.9+
This is just the beginning. Contributions and feedback are welcome!
Full Changelog: https://github.com/EasyPackages/EasyMock/commits/1.0.0