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
ConstructorsModifierConstructorDescriptionprotectedXUnitThreshold(String unstableThreshold, String unstableNewThreshold, String failureThreshold, String failureNewThreshold) -
Method Summary
Modifier and TypeMethodDescriptionall()getResultThresholdNumber(XUnitLog log, int testCount, int newTestCount) abstract ResultgetResultThresholdNumber(XUnitLog log, Run<?, ?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousResult) getResultThresholdPercent(XUnitLog log, double testPercent, double newTestPercent) abstract ResultgetResultThresholdPercent(XUnitLog log, Run<?, ?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousTestResultAction) abstract booleanisValidThreshold(double threshold, double value) voidsetFailureNewThreshold(String failureNewThreshold) voidsetFailureThreshold(String failureThreshold) voidsetUnstableNewThreshold(String unstableNewThreshold) voidsetUnstableThreshold(String unstableThreshold)
-
Constructor Details
-
XUnitThreshold
protected XUnitThreshold() -
XUnitThreshold
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<XUnitThreshold>
-
all
-
getUnstableThreshold
-
setUnstableThreshold
-
getUnstableNewThreshold
-
setUnstableNewThreshold
-
getFailureThreshold
-
setFailureThreshold
-
getFailureNewThreshold
-
setFailureNewThreshold
-
getResultThresholdNumber
-
getResultThresholdPercent
-
isValidThreshold
public abstract boolean isValidThreshold(double threshold, double value) -
getResultThresholdNumber
-
getResultThresholdPercent
-