Skip to content

Fix support for JUnitParams  #132

@sbabcoc

Description

@sbabcoc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions