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

Reusable set of tests #80

Closed
la10736 opened this issue Dec 28, 2019 · 2 comments
Closed

Reusable set of tests #80

la10736 opened this issue Dec 28, 2019 · 2 comments

Comments

@la10736
Copy link
Owner

la10736 commented Dec 28, 2019

Can be useful create a way to make a set of tests reusable. In #66 we observed that this can be done by create a macro that can decorate test functions by the rstest attribute that define all needed cases and values.

Write these macro is tricky and cannot be assumed as general pattern. From rust 1.40 by rust-lang/rust#64035 (comment) we can write a functional macro to generate macros. We can start to write it in rstest crate and then move it in a separate crate.

@la10736
Copy link
Owner Author

la10736 commented Jun 20, 2020

TODO:

  • Document rstest_reuse code
  • Update rstest docs to redirect to rstest_reuse and publish a new version

la10736 added a commit that referenced this issue Jun 21, 2020
inother crates.
Add test for intra-module visibility
la10736 added a commit that referenced this issue Jun 21, 2020
la10736 added a commit that referenced this issue Jun 21, 2020
la10736 added a commit that referenced this issue Jun 21, 2020
@la10736
Copy link
Owner Author

la10736 commented Jun 21, 2020

Done

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

1 participant