Skip to content

v0.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Matejkob Matejkob released this 14 Jun 14:29
· 277 commits to main since this release

Key Features:

  • Automatic Spy Generation: Annotate your protocol with @Spyable, and the macro will automatically generate a corresponding spy class that implements the protocol.
  • Interaction Tracking: The generated spy class can record all interactions with its methods and properties, providing a comprehensive log for precise assertions in your tests.

Migration from Sourcery:

To facilitate a smooth transition from Sourcery's Mocks & Stubs to Spyable, the initial version of Spyable generates spies for protocols in line with the AutoMockable template. This should allow most projects using Sourcery with the basic AutoMockable template to switch over to Spyable within minutes.

Full Changelog: https://github.com/Matejkob/swift-spyable/commits/0.1.0