Package net.jqwik.api
Schnittstelle Reporter
@API(status=MAINTAINED,
since="1.4.0")
public interface Reporter
An interface that can be used to report additional information for a test element,
i.e. a test container or property.
To get access to a reporter object, just add a parameter of type Reporter
to the property method or any lifecycle method.
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidpublishReport(String key, Object object) Publish a report aboutobjectunder a givenkey.voidpublishReports(String key, Map<String, Object> objects) Publish reports aboutobjectsunder a givenkey.voidpublishValue(String key, String value) Publish somevalueunder a givenkey.
-
Methodendetails
-
publishValue
Publish somevalueunder a givenkey.- Parameter:
key- a Stringvalue- a String
-
publishReport
Publish a report aboutobjectunder a givenkey.This uses the same mechanism used for jqwik's failure reporting.
- Parameter:
key- a Stringobject- any object
-
publishReports
Publish reports aboutobjectsunder a givenkey.This uses the same mechanism used for jqwik's failure reporting.
- Parameter:
key- a Stringobjects- a map of objects the key of which is used to enumerate them
-