Skip to content
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

Explicit settings support #38

Open
flyingmutant opened this issue Aug 29, 2022 · 4 comments
Open

Explicit settings support #38

flyingmutant opened this issue Aug 29, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@flyingmutant
Copy link
Owner

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

Spin-off of #35.

@flyingmutant flyingmutant added the enhancement New feature or request label Aug 29, 2022
flyingmutant added a commit that referenced this issue Aug 29, 2022
@flyingmutant flyingmutant added this to the rapid v1.0 milestone Dec 31, 2022
@mirandaconrado
Copy link

@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
Copy link
Owner Author

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

  • all top-level state should move to something like var globalEnv Env
  • top-level Check will become globalEnv.Check(...).
  • WithOptions (need to decide on a good name) will construct an Env that overrides stuff in globalEnv

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

@ashishnegi
Copy link

+1 for this

@flyingmutant
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants