-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adds DiscoveryCallbacks #577
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
Conversation
I don't think the rebase worked... You didn't really change 330 files, did you? |
04022d7
to
830f6b3
Compare
No I didn't! I'm not entirely sure how I produced that commit (I'll look later as it's on another laptop). This PR is really for team discussion and should be labeled "don't-merge" since we don't really want the DiscoveryReportExtension to be added to the default ExtensionRegistry (it's only a demonstration of how the new callback works). |
I'd be really happy to see this proposal making progress, because I agree with @smoyer64 that this extension point would be very valuable. In my current understand this is the key feature to enable parameterized tests as we had them in JUnit 4. |
We are going to meet next week and will discuss this proposal. Thanks for your patience! |
Please note that we've discussed parameterized tests in the team and they will be the main theme for M4. However, since we want to support use cases with a large number of parameters that may be read from a file etc. we will not create a |
I'm playing with the |
I am wondering if it makes sense to have a single extension point at the end of the discovery phase or if it would make more sense to have a callback after each test descriptor being found, initialized and added to the test plan? Would that also help? |
@bechte - Somehow I missed your comment in September. I think that a callback after each |
We're cleaning out the issue tracker and closing PRs for issues that we've not seen much demand to fix. Feel free to comment with additional justifications if you feel that this one should not have been closed. |
I think |
As described in #354, this PR provides access to the test plan before it becomes immutable and facilitates the creation of extensions to process parametric tests as well as to guarantee test order. See #354 for a much longer rationale.
Like others, I had shelved this concept until M3 was out but I'd like to participate in the discussion since parametric tests (via JUnitParams) are one of my favorite patterns and I've been waiting for this ability in upREST. This extension point is extremely powerful and therefore also dangerous. I'd be happy to review other ways that parametric, ordered, scenario, theories tests might work and there's definitely value in only having one supported mechanism for each.
I hereby agree to the terms of the JUnit Contributor License Agreement.