Package org.testng.internal
Class ExitCode
java.lang.Object
org.testng.internal.ExitCode
|--------------------|---------|-------|------------|------------------------------------------|
| FailedWithinSuccess| Skipped | Failed| Status Code| Remarks |
|--------------------|---------|-------|------------|------------------------------------------|
| 0 | 0 | 0 | 0 | Passed tests |
| 0 | 0 | 1 | 1 | Failed tests |
| 0 | 1 | 0 | 2 | Skipped tests |
| 0 | 1 | 1 | 3 | Skipped/Failed tests |
| 1 | 0 | 0 | 4 | FailedWithinSuccess tests |
| 1 | 0 | 1 | 5 | FailedWithinSuccess/Failed tests |
| 1 | 1 | 0 | 6 | FailedWithinSuccess/Skipped tests |
| 1 | 1 | 1 | 7 | FailedWithinSuccess/Skipped/Failed tests |
|--------------------|---------|-------|------------|------------------------------------------|
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSet
private static final int
private static final int
static final int
private static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
computeAndUpdate
(int index, IResultMap testResults, IResultMap configResults) (package private) void
computeAndUpdate
(ITestContext context) int
boolean
static boolean
hasFailure
(int returnCode) boolean
static boolean
hasFailureWithinSuccessPercentage
(int returnCode) boolean
hasSkip()
static boolean
hasSkipped
(int returnCode) static ExitCode
-
Field Details
-
HAS_NO_TEST
public static final int HAS_NO_TEST- See Also:
-
FAILED_WITHIN_SUCCESS
private static final int FAILED_WITHIN_SUCCESS- See Also:
-
SKIPPED
public static final int SKIPPED- See Also:
-
FAILED
private static final int FAILED- See Also:
-
SIZE
private static final int SIZE- See Also:
-
exitCodeBits
-
-
Constructor Details
-
ExitCode
ExitCode() -
ExitCode
-
-
Method Details
-
hasFailureWithinSuccessPercentage
public static boolean hasFailureWithinSuccessPercentage(int returnCode) -
hasSkipped
public static boolean hasSkipped(int returnCode) -
hasFailure
public static boolean hasFailure(int returnCode) -
newExitCodeRepresentingFailure
-
computeAndUpdate
-
computeAndUpdate
-
hasFailure
public boolean hasFailure() -
hasSkip
public boolean hasSkip() -
hasFailureWithinSuccessPercentage
public boolean hasFailureWithinSuccessPercentage() -
getExitCode
public int getExitCode()
-