Package net.jqwik.api.statistics
Annotationsschnittstelle 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.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
static enum
-
Optionale Elemente - Übersicht
Modifizierer und TypOptionales ElementBeschreibungClass
<? 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 -
Feldübersicht
-
Felddetails
-
ALL_LABELS
- Siehe auch:
-
-
Elementdetails
-
value
- Standard:
PLUG_IN
-
format
Class<? extends StatisticsReportFormat> formatThe format to be used for publishing statistics reports in the annotated property.- Standard:
net.jqwik.api.statistics.StatisticsReport.None.class
-
label
The statistics label to which the format in this annotation should be applied.- Standard:
""
-
onFailureOnly
@API(status=EXPERIMENTAL, since="1.5.5") boolean onFailureOnlySet to true when only failing properties should report their statistics- Standard:
false
-