-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add @CartesianEnumSource #379
Comments
How The issue as it is, is kind of blocked by the coming change, unfortunately. If you don't need this feature urgently, this will probably be implemented in about a month or so. Does that work? Regarding the issue being feasible: Sounds great, I think the easier it is to "migrate" to |
Thanks for the quick feedback, good to know that something in this direction was already on the table 🙂 I would definitely wait for the change, but please do let me know if there is anything that can be picked up to accelerate. |
Feel free to review the PR implementing the change. All feedback is appreciated. |
@Michael1993 now that #362 is merged, I would be happy to put something together to support |
Sure, feel free to put something together! |
I am currently looking for a way to provide Enum values as input of a cartesian product test.
I understand it can be achieved with a static factory method, but having something like a
@CartesianEnumSource
which mimics the JUnit@EnumSource
includingnames
andmode
parameters would be really nice.If this sounds reasonable, I am happy to give it a shot (probably taking inspiration from #321).
Bonus topic: it would be also nice to have a
@CartesianArgumentSource
which would allow plugging in a customArgumentProvider
implementation. Maybe this deserves a separate issue, but I'm not sure yet about its feasibility.The text was updated successfully, but these errors were encountered: