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

Create a module for each value list #68

Closed
la10736 opened this issue Oct 27, 2019 · 1 comment
Closed

Create a module for each value list #68

la10736 opened this issue Oct 27, 2019 · 1 comment
Milestone

Comments

@la10736
Copy link
Owner

la10736 commented Oct 27, 2019

Instead to use an anonymous case_1_2_1 we should separate any value list case in a nested submodule named as the identity follow by _<nr>.

An example

#[rstest(a => [1, 2], b => [3, 4]), c, case(5), case(6)]
fn to_test(a:u32, b: u32, c: u32) {
   assert!(a*b != 0);
}```

should generate follow tests:

to_test::case_1::a_1::b_1
to_test::case_1::a_1::b_2
to_test::case_1::a_2::b_1
to_test::case_1::a_2::b_2
to_test::case_2::a_1::b_1
to_test::case_2::a_1::b_2
to_test::case_2::a_2::b_1
to_test::case_2::a_2::b_2

@la10736 la10736 added this to the rstest 0.5 milestone Oct 27, 2019
@la10736
Copy link
Owner Author

la10736 commented Nov 16, 2019

Done

@la10736 la10736 closed this as completed Nov 16, 2019
la10736 added a commit that referenced this issue Nov 16, 2019
la10736 added a commit that referenced this issue Nov 25, 2019
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