Enum Class DuplicateTestPolicy

java.lang.Object
java.lang.Enum<DuplicateTestPolicy>
org.jenkinsci.plugins.testresultsanalyzer.DuplicateTestPolicy
All Implemented Interfaces:
Serializable, Comparable<DuplicateTestPolicy>, Constable

public enum DuplicateTestPolicy extends Enum<DuplicateTestPolicy>
How to show a test that was executed more than once in a single build, for instance by a retry mechanism or by parameterized fixtures whose cases share a class and name.
  • Enum Constant Details

    • FAILED_IF_ANY_FAILED

      public static final DuplicateTestPolicy FAILED_IF_ANY_FAILED
      The test failed if any of its executions failed.
    • PASSED_IF_ANY_PASSED

      public static final DuplicateTestPolicy PASSED_IF_ANY_PASSED
      The test passed if any of its executions passed, as when failing tests are retried until they pass.
  • Field Details

  • Method Details

    • values

      public static DuplicateTestPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DuplicateTestPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
    • prefers

      public boolean prefers(String candidate, String current)
      Returns:
      whether an execution with status candidate should represent the test rather than one with status current; executions with the same status keep the current one