Class ReproduceInfoPrinter
java.lang.Object
org.junit.runner.notification.RunListener
org.opensearch.test.junit.listeners.ReproduceInfoPrinter
public class ReproduceInfoPrinter
extends org.junit.runner.notification.RunListener
A
RunListener that emits a command you can use to re-run a failing test with the failing random seed to
System.err.-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classReproduceInfoPrinter.GradleMessageBuilder -
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Loggerlogger -
Constructor Summary
Constructors Constructor Description ReproduceInfoPrinter() -
Method Summary
Modifier and Type Method Description voidtestFailure(org.junit.runner.notification.Failure failure)voidtestFinished(org.junit.runner.Description description)voidtestStarted(org.junit.runner.Description description)
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
ReproduceInfoPrinter
public ReproduceInfoPrinter()
-
-
Method Details
-
testStarted
public void testStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFinished
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.Exception- Overrides:
testFailurein classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-