Annotation Type ReportEntry
@Repeatable(ReportEntry.ReportEntries.class)
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@ExtendWith(ReportEntryExtension.class)
public @interface ReportEntry
Publish the specified key-value pair to be consumed by an
org.junit.platform.engine.EngineExecutionListener
in order to supply additional information to the reporting infrastructure. This is functionally identical to calling
ExtensionContext::publishReportEntry
from within the test method.
ReportEntry is repeatable and can be used on methods.
This extension does not interact with parallel test execution.
For more details and examples, see the documentation on report entries.
- Since:
- 0.5.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe available values you can choose from to define for which test outcomes the extension should publish the report entry.static @interfaceContaining annotation of repeatableReportEntry. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the key of the pair that's to be published as a report entry.Specifies when the extension should publish the report entry.
-
Element Details
-
key
String keySpecifies the key of the pair that's to be published as a report entry. Defaults to"value"and can't be blank.- See Also:
- Default:
"value"
-
value
String valueSpecifies the value of the pair that's to be published as a report entry. Can't be blank.- See Also:
-
when
Specifies when the extension should publish the report entry. Defaults toALWAYS.- See Also:
- Default:
ALWAYS
-