Skip to content

0.1.0

Choose a tag to compare

@JoeOCT91 JoeOCT91 released this 25 Nov 11:04
· 46 commits to main since this release

First release.

  • Spy keeps every input a test double's requirement is called with and answers as the test scripts: a standing answer, one-off answers queued in front of it (willReturnNext(_:then:)), or an answer worked out from the input.
  • ThrowingSpy does the same for requirements that throw (willThrow(_:), willGiveNext(_:then:)).
  • Pure Swift, Foundation only, no dependencies. Safe under Swift 6 strict concurrency, from main-actor and Sendable test doubles alike.

Supports iOS 13, macOS 10.15, tvOS 13, watchOS 6, visionOS 1 and Linux.