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

Config : support disabling failure persistence via env var #287

Conversation

matthew-russo
Copy link
Member

closes #276

@@ -43,7 +43,10 @@ const FORK: &str = "PROPTEST_FORK";
const TIMEOUT: &str = "PROPTEST_TIMEOUT";
#[cfg(feature = "std")]
const VERBOSE: &str = "PROPTEST_VERBOSE";
#[cfg(feature = "std")]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not strictly needed but noticed it was inconsistent

@matthew-russo matthew-russo force-pushed the 276-env-var-disable-persistence branch from 079ad93 to 14396dc Compare January 6, 2023 05:52
Copy link
Member

@cameron1024 cameron1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor thing, otherwise LGTM

Comment on lines 226 to 228
/// You can disable failure persistence with the `PROPTEST_DISABLE_FAILURE_PERSISTENCE`
/// environment variable but its not currently possible to set the persistence file
/// with an environment variable.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was recently a PR adding a comment to these saying "the env var only has an effect when the std feature is enabled". I'm assuming that applies here? If so, should we add that warning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@matthew-russo matthew-russo force-pushed the 276-env-var-disable-persistence branch from 14396dc to cd121d1 Compare January 7, 2023 18:47
Copy link
Collaborator

@rex-remind101 rex-remind101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

@matthew-russo matthew-russo merged commit b513a32 into proptest-rs:master Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an environment variable to disable failure persistence
3 participants