-
Notifications
You must be signed in to change notification settings - Fork 7
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
Introduce a QuickCheck-style MoreActions
type modifier to make it easier to increase the number of actions on average in tests
#84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea, I have left comment suggesting possible improvements .
number of long sequences
5c0a6c4
to
1f9d4e1
Compare
I'm not happy with the design here. The current design makes it possible to do something like:
But that would introduce the extra overhead of the Thoughts very much welcome from @abailly-iohk and @UlfNorell. |
Another more promising approach might be something like this:
We could add some sugar to this to avoid having to write crap like I think this introduces a nicer interface than having the |
I've re-designed this to be in line with my last comment. It's much nicer now than it was before. It wouldn't hurt to have @abailly-iohk and @UlfNorell look it over and see if there is anything else we'd like to do here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better than initial proposal!
closes #85 |
I never remember how to disable those, but will do |
I'm not 100% sure I like this design, but now you can do
quickCheck $ prop_BlaBla . getMoreActions
to increase the number of actions generated in traces without changing other stuff.The thing I don't like about this is that it doesn't take into account wanting to add other modifiers at the same time. What if we wanted a modifier
PostiveActions
for polarity for example?quickCheck $ prop_BlaBla . getMoreActions . getPositiveActions
would be a bit messy to implement as it stands now. Something to think about?Checklist: