-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 hierarchical parameterized/dynamic tests #604
Comments
Like turning test methods into containers? Why not annotated
|
But in your example it is not the extension that creates the hierarchy but the engine. If as an extension developer I want my own hierarchy, I can't do it. |
@nicolaiparlog That's why I proposed allowing an extension to alter the test plan after discovery. See #354 and the associated PR #577. When the test plan is passed into the engine to be executed, it's effectively immutable. |
See my comment there why I am not convinced that sufficiently addresses this use case. |
Addressed by 1a57e4f on master |
However an extension point that allows dynamic or parameterized tests turns out (see for example #14, #371, #395 ), it would be great if it allowed to structure tests hierarchically. If, for example, two test methods
testA
andtestB
were run three times each, the test tree should be able to look as follows:Allowing extensions to create a plan like that gives them the ability to better structure the generated tests, giving better feedback to developers.
This does not mean that a particular implementation for that extension point (let's say Jupiter's support for parameterized tests) should organize tests like that but that other implementations have the ability to do so.
The text was updated successfully, but these errors were encountered: