Class Util

java.lang.Object
org.tap4j.plugin.util.Util

public final class Util extends Object
Utility methods used by tap-plugin.
  • Method Details

    • normalizeFolders

      public static String normalizeFolders(String workspace, String relative)
      Normalizes a folder path in relation to the workspace path.

      A folder that is subdirectory of workspace will return only the difference. It means that if the workspace is /home/workspace and the folder we want to normalize is /home/workspace/job-1/test.txt, then the return will be job-1/test.txt.

      Parameters:
      workspace - workspace path
      relative - relative path
      Returns:
      normalized path
    • isSkipped

      public static boolean isSkipped(org.tap4j.model.TestResult testResult)
    • isTodo

      public static boolean isTodo(org.tap4j.model.TestResult testResult)
    • isFailure

      public static boolean isFailure(org.tap4j.model.TestResult testResult, Boolean todoIsFailure)