racket-mock icon indicating copy to clipboard operation
racket-mock copied to clipboard

Auto-contracts with `define/mock`

Open jackfirth opened this issue 9 years ago • 0 comments

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.

jackfirth avatar Oct 17 '16 21:10 jackfirth