@Repeatable(value=ReportEntry.ReportEntries.class) @Target(value=METHOD) @Retention(value=RUNTIME) @ExtendWith(value=org.junitpioneer.jupiter.ReportEntryExtension.class) public @interface ReportEntry
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.
For more details and examples, see
the documentation on Report entries
.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Specifies the value of the pair that's to be published as a report entry.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
key
Specifies the key of the pair that's to be published as a report entry.
|
ReportEntry.PublishCondition |
when
Specifies when the extension should publish the report entry.
|
public abstract java.lang.String value
ExtensionContext::publishReportEntry
public abstract java.lang.String key
"value"
and can't be blank.ExtensionContext::publishReportEntry
public abstract ReportEntry.PublishCondition when
ALWAYS
.ReportEntry.PublishCondition