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 renaming of fixtures-as-arguments? #107

Closed
Sushisource opened this issue Mar 2, 2021 · 3 comments
Closed

Allow renaming of fixtures-as-arguments? #107

Sushisource opened this issue Mar 2, 2021 · 3 comments

Comments

@Sushisource
Copy link

Thanks for this crate, super useful.

I find myself often wanting to have a long, specific name for a fixure, but a much shorter name when actually using it in the test. It'd be nice to be able to rename fixtures in the #[rstest] macro for that purpose.

For example:

#[rstest(long_setup_name("arg") as foo)]
fn test_name(foo: FakeFoo) {
}

Would this be welcome? I would be happy to look into making a PR if so.

@la10736
Copy link
Owner

la10736 commented Mar 3, 2021

Great idea!!! Sure it's welcome!

Thx

@la10736
Copy link
Owner

la10736 commented May 16, 2021

Released in 0.10.0

@Sushisource
Copy link
Author

@la10736 Awesome, thank you! Never was able to find the time to try to contribute it 😅

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