Package org.tap4j.plugin.util
Class Util
java.lang.Object
org.tap4j.plugin.util.Util
Utility methods used by tap-plugin.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isSkipped
(org.tap4j.model.TestResult testResult) static boolean
isTodo
(org.tap4j.model.TestResult testResult) static String
normalizeFolders
(String workspace, String relative) Normalizes a folder path in relation to the workspace path.
-
Method Details
-
normalizeFolders
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 pathrelative
- 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
-