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

Fix support for JUnitParams #132

Open
sbabcoc opened this issue Mar 29, 2024 · 0 comments
Open

Fix support for JUnitParams #132

sbabcoc opened this issue Mar 29, 2024 · 0 comments

Comments

@sbabcoc
Copy link
Owner

sbabcoc commented Mar 29, 2024

Note that this description was copied from scribbled notes. It will probably be necessary to crack open the related code to truly understand what it means.

Description doesn't fully resolve for JUnitParams until Parameterized...Runner.runTestMethod(). Only JUnitParams needs Runnable.
EachTestNotifier constructor is the first core method to get the fully resolved Description.

  • Intercept EachTestNotifier.fireTestStarted() and EachTestNotifier.fireTestFinished().
  • Every Statement includes the target object.
  • Intercept the methodBlock() method. This has runner and method, which are unique enough to work if values are collected as a queue. In the EachTestNotifier intercept, map from Description to target, draining the **MethodBlock queue.
  • InvokeMethod is guaranteed to have the target.
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