Class XUnitThreshold
java.lang.Object
org.jenkinsci.plugins.xunit.threshold.XUnitThreshold
- All Implemented Interfaces:
ExtensionPoint
,Describable<XUnitThreshold>
,Serializable
- Direct Known Subclasses:
FailedThreshold
,PassedThreshold
,SkippedThreshold
public abstract class XUnitThreshold
extends Object
implements ExtensionPoint, Serializable, Describable<XUnitThreshold>
- Author:
- Gregory Boissinot
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ModifierConstructorDescriptionprotected
XUnitThreshold
(String unstableThreshold, String unstableNewThreshold, String failureThreshold, String failureNewThreshold) -
Method Summary
Modifier and TypeMethodDescriptionall()
getResultThresholdNumber
(XUnitLog log, int testCount, int newTestCount) abstract Result
getResultThresholdNumber
(XUnitLog log, Run<?, ?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousResult) getResultThresholdPercent
(XUnitLog log, double testPercent, double newTestPercent) abstract Result
getResultThresholdPercent
(XUnitLog log, Run<?, ?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousTestResultAction) abstract boolean
isValidThreshold
(double threshold, double value) void
setFailureNewThreshold
(String failureNewThreshold) void
setFailureThreshold
(String failureThreshold) void
setUnstableNewThreshold
(String unstableNewThreshold) void
setUnstableThreshold
(String unstableThreshold)
-
Constructor Details
-
XUnitThreshold
protected XUnitThreshold() -
XUnitThreshold
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<XUnitThreshold>
-
all
-
getUnstableThreshold
-
setUnstableThreshold
-
getUnstableNewThreshold
-
setUnstableNewThreshold
-
getFailureThreshold
-
setFailureThreshold
-
getFailureNewThreshold
-
setFailureNewThreshold
-
getResultThresholdNumber
-
getResultThresholdPercent
-
isValidThreshold
public abstract boolean isValidThreshold(double threshold, double value) -
getResultThresholdNumber
-
getResultThresholdPercent
-