Package org.gradle.api.tasks.testing

# Interface TestMetadataListener

@NullMarked @Incubating public interface TestMetadataListener
Listens to the metadata events like reporting key-value pairs or file attachments during test execution.

Since:
  9.4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onMetadata(TestDescriptor testDescriptor, TestMetadataEvent metadataEvent)`
  Fired when during test execution anything is printed to standard output or error

- ## Method Details

  - ### onMetadata

    @Incubating void onMetadata(TestDescriptor testDescriptor, TestMetadataEvent metadataEvent)
    Fired when during test execution anything is printed to standard output or error
    Parameters:
      `testDescriptor` - describes the test
      `metadataEvent` - the event that contains the metadata
    Since:
      9.4.0