-
Notifications
You must be signed in to change notification settings - Fork 43
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
Combine rstest with proptest? #30
Comments
I'll take a look to it. I'm in the middle of the rush (if we can call rush in a pet project) for the next release but I promise that I'll see what that's mean. |
Just to understand. What do you mean is to use Can you give me an use case example to work with? |
For instance, I'd like to use something like
That'd be pretty neat. I'm already using them beside eachother. |
Maybe we can try to implement it after proptest-rs/proptest#153 is landed. In this case I can see a It will be something like: pub fn fixture() -> u32 { 42 }
#[rstest]
#[proptest]
fn doesnt_crash(#[proptest::strategy="\\PC*".into()] s: &str, fixture: u32) {
parse_date(&s);
} or something like this |
Hey -- made it here from the proptest issue. We have an issue over there for adding a way to add explicit cases to proptest: I had originally suggested using rstest for this but there were some counter arguments. I'm planning on adding some very basic casing functionality in to the attr proc macro once the impl lands. I think it should still be composable like you're mentioning here since you could just transform the cases in to rstest syntax but I'll make sure to get your input once the PR is up |
Great! |
Is there any recommended/possible way of using rstest in combination with the amazing proptest? If there were, this would truly make this a killer combination for integration testing.
The text was updated successfully, but these errors were encountered: