Package org.gradle.tooling.events.test
Interface TestFileAttachmentMetadataEvent
- All Superinterfaces:
ProgressEvent,TestMetadataEvent
An event emitted by tests that contains file attachment data.
- Since:
- 9.4.0
-
Method Summary
Modifier and TypeMethodDescriptiongetFile()The published file attachment.@Nullable StringMedia type of the file, if known.Methods inherited from interface org.gradle.tooling.events.ProgressEvent
getDescriptor, getDisplayName, getEventTime
-
Method Details
-
getFile
File getFile()The published file attachment. The path may represent a single file or a directory.- Returns:
- the file
- Since:
- 9.4.0
-
getMediaType
@Nullable String getMediaType()Media type of the file, if known. This is used to declare the general type of data provided by the file.A media type may be provided by the publishing test or omitted. Some files, like directories, do not have a conventional media type.
- Returns:
- media type, may be
null - Since:
- 9.4.0
-