Include generated input with each test.chuck checking
block error
#906
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CIDER includes generated input in reports when the generated input is made available, which happens when using
test.chuck
and itschecking
block. Currently, generated input is made available only to the first test condition within achecking
block. Unfortunately, this means that the generated input is not reported anywhere in CIDER unless the first test condition fails. As a result, the generated input is (in my experience) typically not reported in CIDER.This PR addresses that issue by modifying the
cider.nrepl.middleware.test/current-report
atom selectively based on whether atest.chuck
testing context is available, which results in the presence of a non-nil
value in the:gen-input
key of the report precisely when the report corresponds to an error generated in achecking
block.cc: @daemianmack