public class TestResultTally extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static TestResultTally |
forTestClass(Class<?> classUnderTest) |
Class<?> |
getClassUnderTest() |
int |
getFailureCount()
How many test steps failed.
|
List<StepFailure> |
getFailures()
What were the failures.
|
int |
getIgnoreCount()
How many test steps were ignored.
|
int |
getRunCount()
How many test steps were executed, including ignored and failing test steps.
|
void |
logExecutedTest()
A test step was executed.
|
void |
logFailure(StepFailure failure)
Record a test step failure.
|
void |
logIgnoredTest()
A test step was ignored.
|
boolean |
wasSuccessful()
The test case is considered successful if there were no failing tests.
|
public Class<?> getClassUnderTest()
public void logFailure(StepFailure failure)
public void logIgnoredTest()
public void logExecutedTest()
public int getFailureCount()
public List<StepFailure> getFailures()
public int getIgnoreCount()
public int getRunCount()
public boolean wasSuccessful()
public static TestResultTally forTestClass(Class<?> classUnderTest)
Copyright © 2023. All rights reserved.