-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instrument for :fn and :ret specs #17
Comments
sounds great to me; the less code it takes, the better. We'll need to figure out if this requires a corresponding |
I just read through the relevant In particular: I don't think there's a clean way to implement this without pasting a lot of code (>100 lines) from But if we paste a lot of code, then we have to decide if that will include the pair of atoms that spec uses to track the instrumentation state, which would probably be bad because then a user that uses So since we already have to do dirty tricks, maybe |
Seems like someone has done this already. It's a little different, as they don't have other functions, like |
This seems to be really popular wish.
Rich Hickey argues that instrument should only be concerned with a function being called correctly, and that
:fn
and:ret
should only be checked bytest/check
.I sometimes want feedback faster than that though, and I can think of several situations where it would be nice to have this option.
(test/instrument)
in my example-based tests)So it would be nice to have something like
schpec/overinstrument
that behaves just liketest/instrument
, but for:ret
and:fn
specs.test/instrument
used to check everything, but was changed in this commit, so it shouldn't be too hard to make aoverinstrument
function based on that.The text was updated successfully, but these errors were encountered: