public class JUnitStepListener
extends org.junit.runner.notification.RunListener
| Modifier | Constructor and Description |
|---|---|
protected |
JUnitStepListener(Class<?> testClass,
BaseStepListener baseStepListener,
StepListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
dropListeners() |
BaseStepListener |
getBaseStepListener() |
net.thucydides.core.model.stacktrace.FailureCause |
getError() |
Map<String,List<String>> |
getFailedTests() |
protected Class<?> |
getTestClass() |
List<net.thucydides.core.model.TestOutcome> |
getTestOutcomes() |
boolean |
hasRecordedFailures() |
void |
registerThucydidesListeners() |
void |
testFailure(org.junit.runner.notification.Failure failure) |
void |
testFinished(org.junit.runner.Description description) |
void |
testIgnored(org.junit.runner.Description description) |
void |
testRunFinished(org.junit.runner.Result result) |
void |
testRunStarted(org.junit.runner.Description description) |
void |
testStarted(org.junit.runner.Description description)
Called when a test starts.
|
static JUnitStepListenerBuilder |
withOutputDirectory(File outputDirectory) |
protected JUnitStepListener(Class<?> testClass, BaseStepListener baseStepListener, StepListener... listeners)
public static JUnitStepListenerBuilder withOutputDirectory(File outputDirectory)
public void registerThucydidesListeners()
public BaseStepListener getBaseStepListener()
public void testRunStarted(org.junit.runner.Description description)
throws Exception
testRunStarted in class org.junit.runner.notification.RunListenerExceptionpublic void testRunFinished(org.junit.runner.Result result)
throws Exception
testRunFinished in class org.junit.runner.notification.RunListenerExceptionpublic void testStarted(org.junit.runner.Description description)
testStarted in class org.junit.runner.notification.RunListenerpublic void testFinished(org.junit.runner.Description description)
throws Exception
testFinished in class org.junit.runner.notification.RunListenerExceptionpublic void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
testFailure in class org.junit.runner.notification.RunListenerExceptionpublic void testIgnored(org.junit.runner.Description description)
throws Exception
testIgnored in class org.junit.runner.notification.RunListenerExceptionpublic List<net.thucydides.core.model.TestOutcome> getTestOutcomes()
public net.thucydides.core.model.stacktrace.FailureCause getError()
public boolean hasRecordedFailures()
public void dropListeners()
protected Class<?> getTestClass()
Copyright © 2021. All rights reserved.