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

Package org.gradle.api.tasks.testing

# Interface TestFileAttachmentDataEvent

All Superinterfaces:
  `TestMetadataEvent`

@Incubating @NullMarked public interface TestFileAttachmentDataEvent extends TestMetadataEvent
File attachment data published by a test.

Since:
  9.4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `@Nullable String`
  `getMediaType()`
  Returns the media type of the attached file, or null if not specified.
  `Path`
  `getPath()`
  Returns the path to the attached file.

  ### Methods inherited from interface org.gradle.api.tasks.testing.TestMetadataEvent

  `getLogTime`

- ## Method Details

  - ### getPath

    Path getPath()
    Returns the path to the attached file.
    Returns:
      path to the attached file
    Since:
      9.4.0

  - ### getMediaType

    @Nullable String getMediaType()
    Returns the media type of the attached file, or null if not specified.
    Returns:
      media type of the attached file, or null if not specified
    Since:
      9.4.0