specific icon indicating copy to clipboard operation
specific copied to clipboard

Generate mocks and other test doubles using clojure.spec

Results 4 specific issues
Sort by recently updated
recently updated
newest added

Spies should validate their return values against the `:ret` spec, if available. Note that `stest/instrument` does not do this, so we're deviating from that behavior in this regard.

It would be nice to show the spec and the generator. Right now, you get this: `ERROR in (cik-lookup) (core.clj:4617) Uncaught exception, not in assertion. expected: nil actual: clojure.lang.ExceptionInfo: Couldn't...

The fixed seed for the random number generator in specific/gene should be configurable using an environment variable. If the variable is not present, it should not use a fixed seed....

specific.core/calls returns a vector of call tuples, except when the function being checked is not a test double. In that case, it returns a map with an error message. However,...