racket-mock
racket-mock copied to clipboard
Auto-contracts with `define/mock`
If I mock out a dependency with a contract, I'm vulnerable to "falsely passing" tests if that dependency's API changes. When using define/mock, it should be possible to automatically extract contracts from mocked dependencies and enforce them on behaviors used for mocks. This makes mock testing more reliable, as tests get a small amount of integration testing sanity.