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

Non random generation #74

Closed
hcoles opened this issue Sep 3, 2014 · 3 comments
Closed

Non random generation #74

hcoles opened this issue Sep 3, 2014 · 3 comments
Milestone

Comments

@hcoles
Copy link

hcoles commented Sep 3, 2014

I'd like to be able to use random values quickcheck style during initial development, then fix the seed so that the tests run with deterministic values from that point on.

I'm not clear if the api supports this, but I couldn't see it documented.

@RichardWarburton
Copy link
Owner

Hi @hcoles,

Thanks for reporting this issue. We've actually supported setting the seed from day one, but you're certainly right to raise the issue about it not being documented. I've added a property based testing guide which covers this issue:

https://github.com/RichardWarburton/lambda-behave/wiki/Property-Based-Testing

If there's anything else that you feel is missing or undocumented then please submit issues or pull requests to notify/improve the project.

@hcoles
Copy link
Author

hcoles commented Sep 3, 2014

Thanks - you might want to consider renaming randomNumbers(long) to deterministicNumbers(long).

@RichardWarburton
Copy link
Owner

Good suggestion - I've done that. Also decided the javadoc needed some clarification.

@RichardWarburton RichardWarburton modified the milestone: 0.4 Sep 5, 2014
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

2 participants