Package net.jqwik.api
Interface Reporter
-
@API(status=EXPERIMENTAL, since="1.3.2") public interface Reporter
An interface that can be used to report additional information for a test element, i.e. a test container or property.Reporting additional test information is a JUnit 5 platform feature. Some tools will output this information to stdout; other tools, e.g. Gradle as of version 6, ignore it. That's why jqwik prints this information to stdout itself unless told otherwise.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
publishReport(java.lang.String key, java.lang.Object object)
Publish a report aboutobject
under a givenkey
.void
publishReports(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> objects)
Publish reports aboutobjects
under a givenkey
.void
publishValue(java.lang.String key, java.lang.String value)
Publish somevalue
under a givenkey
.
-
-
-
Method Detail
-
publishValue
void publishValue(java.lang.String key, java.lang.String value)
Publish somevalue
under a givenkey
.- Parameters:
key
- a Stringvalue
- a String
-
publishReport
void publishReport(java.lang.String key, java.lang.Object object)
Publish a report aboutobject
under a givenkey
.This uses the same mechanism used for jqwik's failure reporting.
- Parameters:
key
- a Stringobject
- any object
-
publishReports
void publishReports(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> objects)
Publish reports aboutobjects
under a givenkey
.This uses the same mechanism used for jqwik's failure reporting.
- Parameters:
key
- a Stringobjects
- a map of objects the key of which is used to enumerate them
-
-