You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An integrated shrinker like itype currently produces all possible values of the given type, irrespective of the function the value ultimately ends up in. It would be interesting to see whether we can guide generation of values based on the branches on the generated value, in the function that is ultimately tested.
For example, in functions like this:
function foo(x::Int)
x < 5 && throw(ArgumentError("Not at least 5!"))
# other code
end
the input space is clearly delineated into two regions, those Int smaller than 5 and thsoe at least 5. In the general case, these sorts of branch points are especially interesting, in particular when it comes to testing whether the branch point is correct. It would be great if PropCheck.jl provided not only integrated shrinkers, but also integrated generators - or function aware generators, which are biased to generate values close to these branch points.
This is a very out-there idea though, so this issue is just here for tracking the thought, not as an indicator that this is actively being worked on.
The text was updated successfully, but these errors were encountered:
PropCheck.jl has entered maintenance mode, which means that no new features will be added.
If you're interested in a PBT package providing this capability, consider using Supposition.jl, which is actively adding new features & UX niceties. Please open a feature request with that repository if you're interested in this functionality.
An integrated shrinker like
itype
currently produces all possible values of the given type, irrespective of the function the value ultimately ends up in. It would be interesting to see whether we can guide generation of values based on the branches on the generated value, in the function that is ultimately tested.For example, in functions like this:
the input space is clearly delineated into two regions, those
Int
smaller than 5 and thsoe at least 5. In the general case, these sorts of branch points are especially interesting, in particular when it comes to testing whether the branch point is correct. It would be great if PropCheck.jl provided not only integrated shrinkers, but also integrated generators - or function aware generators, which are biased to generate values close to these branch points.This is a very out-there idea though, so this issue is just here for tracking the thought, not as an indicator that this is actively being worked on.
The text was updated successfully, but these errors were encountered: