Spy 1.4.0
Released under the MIT License
Spy - a Clojure and ClojureScript library for stubs, spies and mocks.
Installation
To install, add the following dependency to your project or build file:
[tortue/spy "1.4.0"]
Namespaces
spy.assert
Assertion functions wrapping spy.core functions, providing assertions using clojure.test/is and messages to aid debugging when test expectations are not met.
spy.core
A testing framework for stubs, spies and mocks. Enables verification of interactions with a function.
Public variables and functions:
- call-count
- called-at-least-n-times?
- called-at-least-once?
- called-n-times?
- called-no-more-than-n-times?
- called-no-more-than-once?
- called-once-with?
- called-once?
- called-with?
- called?
- calls
- first-call
- first-response
- last-call
- last-response
- mock
- not-called-with?
- not-called?
- nth-call
- nth-response
- reset-spy!
- responses
- spy
- stub
- stub-throws