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:
  • Constructor Details

    • XUnitThreshold

      protected XUnitThreshold()
    • XUnitThreshold

      public XUnitThreshold(String unstableThreshold, String unstableNewThreshold, String failureThreshold, String failureNewThreshold)
  • Method Details

    • getDescriptor

      public Descriptor<XUnitThreshold> getDescriptor()
      Specified by:
      getDescriptor in interface Describable<XUnitThreshold>
    • 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)
    • getResultThresholdPercent

      public Result getResultThresholdPercent(XUnitLog log, double testPercent, double newTestPercent)