Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecate internal forAllShrink #457

Closed
wants to merge 1 commit into from

Conversation

ashawley
Copy link
Contributor

While reviewing #444, I noticed the existing forAllShrink. This version of forAllShrink should be made private, and should also be updated to take an explicit Shrink[T] rather than an explicit T => Stream[T]. This deprecates it and provides an alternate implementation.

Shrinking failed tests will be deprecated when an explicit
generator is given to forAll.

Going forward, there should be another way for users to
shrink failing tests.  Naming it forAllShrink is the obvious
candidate.  This old version of forAllShrink taking a should
be made private, and should also be updated to take an
explicit Shrink[T] rather than an explicit T => Stream[T].
@ashawley ashawley force-pushed the deprecate-forallshrink branch from d16e8ba to 8142c39 Compare February 21, 2019 19:50
@ashawley ashawley closed this Apr 12, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant