TestMetadataListener (Gradle API 9.7.0)
Description: declaration: package: org.gradle.api.tasks.testing, interface: TestMetadataListener

# 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