Class TestStatisticsPortlet

java.lang.Object
hudson.plugins.view.dashboard.DashboardPortlet
hudson.plugins.view.dashboard.test.TestStatisticsPortlet
All Implemented Interfaces:
ExtensionPoint, Describable<DashboardPortlet>, ModelObject

public class TestStatisticsPortlet extends DashboardPortlet
Portlet that presents a grid of test result data with summation
Author:
Peter Hayes
  • Constructor Details

    • TestStatisticsPortlet

      @DataBoundConstructor public TestStatisticsPortlet(String name, boolean hideZeroTestProjects, String successColor, String failureColor, String skippedColor, boolean useBackgroundColors)
  • Method Details

    • getTestResultSummary

      public TestResultSummary getTestResultSummary(Collection<TopLevelItem> jobs)
    • getHideZeroTestProjects

      public boolean getHideZeroTestProjects()
    • format

      public String format(DecimalFormat df, double val)
    • isUseBackgroundColors

      public boolean isUseBackgroundColors()
    • getSuccessColor

      public String getSuccessColor()
    • getFailureColor

      public String getFailureColor()
    • getSkippedColor

      public String getSkippedColor()
    • getSuccessColorCss

      public String getSuccessColorCss()
      The success color resolved to a value that is safe to use in a CSS background declaration, falling back to the theme's success color when none is configured.
    • getFailureColorCss

      public String getFailureColorCss()
      The failure color resolved to a value that is safe to use in a CSS background declaration, falling back to the theme's error color when none is configured.
    • getSkippedColorCss

      public String getSkippedColorCss()
      The skipped color resolved to a value that is safe to use in a CSS background declaration, falling back to the theme's warning color when none is configured. Jenkins core does not define a dedicated "skipped" theme color, so this reuses the same var(--warning-color) used elsewhere in Jenkins for an unstable/skipped state.
    • setUseAlternatePercentagesOnLimits

      @DataBoundSetter public void setUseAlternatePercentagesOnLimits(boolean useAlternatePercentagesOnLimits)
    • isUseAlternatePercentagesOnLimits

      public boolean isUseAlternatePercentagesOnLimits()
    • getRowClass

      public String getRowClass(TestResult testResult)
    • getTotalRowClass

      public String getTotalRowClass(List<TestResult> testResults)
    • setUseBackgroundColors

      public void setUseBackgroundColors(boolean useBackgroundColors)
    • setSkippedColor

      public void setSkippedColor(String skippedColor)
    • setSuccessColor

      public void setSuccessColor(String successColor)
    • setFailureColor

      public void setFailureColor(String failureColor)