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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
XUnitThreshold()
XUnitThreshold(String unstableThreshold, String unstableNewThreshold, String failureThreshold, String failureNewThreshold)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<XUnitThreshold,XUnitThresholdDescriptor<?>>
all()
Descriptor<XUnitThreshold>
getDescriptor()
String
getFailureNewThreshold()
String
getFailureThreshold()
Result
getResultThresholdNumber(XUnitLog log, int testCount, int newTestCount)
abstract Result
getResultThresholdNumber(XUnitLog log, Run<?,?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousResult)
Result
getResultThresholdPercent(XUnitLog log, double testPercent, double newTestPercent)
abstract Result
getResultThresholdPercent(XUnitLog log, Run<?,?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousTestResultAction)
String
getUnstableNewThreshold()
String
getUnstableThreshold()
abstract boolean
isValidThreshold(double threshold, double value)
void
setFailureNewThreshold(String failureNewThreshold)
void
setFailureThreshold(String failureThreshold)
void
setUnstableNewThreshold(String unstableNewThreshold)
void
setUnstableThreshold(String unstableThreshold)
-
-
-
Method Detail
-
getDescriptor
public Descriptor<XUnitThreshold> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<XUnitThreshold>
-
all
public static DescriptorExtensionList<XUnitThreshold,XUnitThresholdDescriptor<?>> all()
-
getUnstableThreshold
public String getUnstableThreshold()
-
setUnstableThreshold
@DataBoundSetter public void setUnstableThreshold(String unstableThreshold)
-
getUnstableNewThreshold
public String getUnstableNewThreshold()
-
setUnstableNewThreshold
@DataBoundSetter public void setUnstableNewThreshold(String unstableNewThreshold)
-
getFailureThreshold
public String getFailureThreshold()
-
setFailureThreshold
@DataBoundSetter public void setFailureThreshold(String failureThreshold)
-
getFailureNewThreshold
public String getFailureNewThreshold()
-
setFailureNewThreshold
@DataBoundSetter public void setFailureNewThreshold(String failureNewThreshold)
-
getResultThresholdNumber
public abstract Result getResultThresholdNumber(XUnitLog log, Run<?,?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousResult)
-
getResultThresholdPercent
public abstract Result getResultThresholdPercent(XUnitLog log, Run<?,?> build, hudson.tasks.junit.TestResultSummary testResult, hudson.tasks.junit.TestResultSummary previousTestResultAction)
-
isValidThreshold
public abstract boolean isValidThreshold(double threshold, double value)
-
getResultThresholdNumber
public Result getResultThresholdNumber(XUnitLog log, int testCount, int newTestCount)
-
-