jackfirth / racket-mock

Mocking library for Racket
Other
22 stars 7 forks source link

Auto-contracts with `define/mock` #102

Open jackfirth opened 7 years ago

jackfirth commented 7 years ago

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.