Interface GroupTestEventReporter

All Superinterfaces:
AutoCloseable, TestEventReporter

@Incubating public interface GroupTestEventReporter extends TestEventReporter
Reports test events, and child test event reporters.
Since:
8.12
  • Method Details

    • reportTest

      TestEventReporter reportTest(String name, String displayName)
      Create a child 'test' test event reporter. This can be used, for example, to emit events for each method in a tested class.

      Since this is a 'test' node, it will not have any children. To add children, use reportTestGroup(String).

      Parameters:
      name - the name of the test
      displayName - the display name of the test
      Returns:
      the nested test event reporter
      Since:
      8.12
    • reportTestGroup

      GroupTestEventReporter reportTestGroup(String name)
      Create a child group test event reporter. This can be used, for example, to emit events for a tested class, or a parameterized test method (but not the individual parameterized tests).

      Since this is a group, it can have children. To add a 'test' node, use reportTest(String, String).

      Parameters:
      name - the name of the composite, which will also be used as the display name
      Returns:
      the nested test event reporter
      Since:
      8.12