flyingmutant / rapid

Rapid is a modern Go property-based testing library
https://pkg.go.dev/pgregory.net/rapid
Mozilla Public License 2.0
579 stars 25 forks source link

Explicit settings support #38

Open flyingmutant opened 2 years ago

flyingmutant commented 2 years ago

To have an ability to customuze e.g. checks or steps per-test, without altering global environment.

Spin-off of #35.

mirandaconrado commented 1 year ago

@flyingmutant I'm pretty interested in this as we have some tests that need tuning of the configuration (mainly to reduce the number of runs and usually have more steps in the state machine). I'd be happy to contribute this back. Do you have a design in mind (I saw your suggestion)?

flyingmutant commented 1 year ago

I think something like you've linked should be decent place to start:

If you'll send a PR, I'll try my best with reviewing but can't promise very quick turnaround right now.

ashishnegi commented 1 year ago

+1 for this

flyingmutant commented 1 year ago

There is a chance that 4391f11 will mostly obviate the need to specify settings explicitly.