-
@Repeatable(ReportEntries.class) @Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @ExtendWith(ReportEntryExtension.class) public @interface ReportEntry
Publish the specified key-value pair to be consumed by anorg.junit.platform.engine.EngineExecutionListenerin order to supply additional information to the reporting infrastructure. This is functionally identical to callingExtensionContext::publishReportEntryfrom within the test method.ReportEntryis 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
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueSpecifies the value of the pair that's to be published as a report entry.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringkeySpecifies the key of the pair that's to be published as a report entry.ReportEntry.PublishConditionwhenSpecifies when the extension should publish the report entry.
-
-
-
-
when
ReportEntry.PublishCondition when
Specifies when the extension should publish the report entry. Defaults toALWAYS.- See Also:
ReportEntry.PublishCondition
- Default:
- org.junitpioneer.jupiter.ReportEntry.PublishCondition.ALWAYS
-
-