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

Seed and print the value of seed used on failure #121

Closed
Wilfred opened this issue Jan 30, 2016 · 3 comments
Closed

Seed and print the value of seed used on failure #121

Wilfred opened this issue Jan 30, 2016 · 3 comments

Comments

@Wilfred
Copy link

Wilfred commented Jan 30, 2016

I have tests that fail very rarely. When this happens on Travis, I'd really like to reproduce the issue locally.

If quickcheck randomly chose a seed, but printed that seed value on failure, then I could replicate test failures.

@BurntSushi
Copy link
Owner

Hmm. The failures should print the arguments with which the test ran. That should be sufficient to reproduce the failure?

@Wilfred
Copy link
Author

Wilfred commented Feb 2, 2016

You're right, that's totally sufficient. Sorry for the noise.

@Wilfred Wilfred closed this as completed Feb 2, 2016
@purew
Copy link

purew commented Dec 6, 2017

For more complex test-input, it is not always that simple to refer to the debug output. It would be very useful if quickcheck could present reproducability steps on a failing test-case.

In the best of all worlds, giving a single one-liner that runs just the failing test-case with the failing test-input would be awesome.

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

No branches or pull requests

3 participants