Iterating through the testing parameters #4691
-
Hello, guys! I've come up with an idea, maybe not a new one. Enter the test parameters into the tests and perform a complete iteration of the parameters when running the tests. This question concerns the design of tests, and it would be nice in the framework itself to be able to generate combinations of parameters for scenarios. Demo project https://github.com/Miroslav999/Example_test_parameters/tree/master . We have three parameters in the class test2.my.param.MyArgumentsProvider, and when we run the test test2.my.param.MyTestClass.testWithArgumentsSource, we get all possible combinations for them. If the feature is interesting, then I could develop it, for example, creating combinations based on the pairwise principle testing or introduce rules that would determine the conditions under which the number of scenarios should be reduced. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Have you seen |
Beta Was this translation helpful? Give feedback.
-
This has indeed been brought up several times. Just search for "cartesian" in closed issues. As @scordio mentioned, JUnit Pioneer offers |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answers. |
Beta Was this translation helpful? Give feedback.
Have you seen
@CartesianTest
from JUnit Pioneer? What you describe seems to be very close to that.