Package net.jqwik.api.statistics
Annotation Interface StatisticsReport
@Target({ANNOTATION_TYPE,METHOD,TYPE})
@Retention(RUNTIME)
@Documented
@Repeatable(StatisticsReportList.class)
@API(status=MAINTAINED,
since="1.2.3")
public @interface StatisticsReport
This annotation can be used to influence statistics reporting. You can either
annotate a property method to change reporting for this property only
or a container class to change reporting for all properties in this class
or nested subclasses.
There are three usage scenarios:
-
Use
@StatisticsReport(STANDARD)
to enable the standard reporting. This is the default anyway. -
Use
@StatisticsReport(OFF)
to disable statistics reporting. -
Use
@StatisticsReport(format = YourReportFormat.class)
to plug in your own format.
This annotation is repeatable when used on property methods. In this case use label() to specify for which statistics collection the given report format shall be used.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<? extends StatisticsReportFormat>
The format to be used for publishing statistics reports in the annotated property.The statistics label to which the format in this annotation should be applied.boolean
Set to true when only failing properties should report their statistics -
Field Summary
-
Field Details
-
ALL_LABELS
- See Also:
-
-
Element Details
-
value
- Default:
- PLUG_IN
-
format
Class<? extends StatisticsReportFormat> formatThe format to be used for publishing statistics reports in the annotated property.- Default:
- net.jqwik.api.statistics.StatisticsReport.None.class
-
label
The statistics label to which the format in this annotation should be applied.- Default:
- ""
-
onFailureOnly
@API(status=EXPERIMENTAL, since="1.5.5") boolean onFailureOnlySet to true when only failing properties should report their statistics- Default:
- false
-