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

Allow skipping to a specific test number or shrink result #2

Merged
merged 5 commits into from
Apr 8, 2022

Conversation

ChickenProp
Copy link
Owner

Upstream: hedgehogqa#454

Using environment variables, this lets the user either

  • HEDGEHOG_SKIP_TO_TEST: Start testing at a specific test number, and then continue from there. If it fails it'll shrink, if it passes it'll move on to the next test. Or,
  • HEDGEHOG_SKIP_TO_SHRINK: Test at a specific test number and shrink state. If it fails it won't shrink further, if it passes the test will pass. The shrink state is encoded as an alphanumeric string and printed below the test and shrink counts. It also runs the test at intermediate shrinks, ignoring the results; see discussion on the upstream PR.

Environment variables are a bad way to handle this, but it means we can use the feature now without also forking hspec-hedgehog.

@ChickenProp ChickenProp merged commit ee9de7c into master Apr 8, 2022
@ChickenProp ChickenProp mentioned this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant