public class TestsExecutor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
TestsExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.String packagePrefix) |
TestsExecutor |
withAfterExecution(java.util.function.Consumer<ExecutionResult> consumer) |
TestsExecutor |
withBeforeExecution(java.util.function.Consumer<java.util.Collection<java.lang.String>> consumer) |
TestsExecutor |
withEnableMail(MailConfig mailConfig) |
TestsExecutor |
withLogFileHandler(java.util.function.Consumer<java.nio.file.Path> testLogHandler) |
TestsExecutor |
withMailTablesBuilder(java.util.function.Function<ExecutionResult,java.util.List<MailTemplateBuilder.TableBuilder>> tablesBuilderFunction) |
TestsExecutor |
withOnExecutionFailure(java.util.function.Consumer<java.lang.Exception> onFailure) |
TestsExecutor |
withOnExecutionSuccess(java.util.function.Consumer<ExecutionResult> onSuccess) |
TestsExecutor |
withOnTestCompletion(java.util.function.Consumer<TestJobResult> onTestCompletion) |
TestsExecutor |
withTestFailureExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler) |
TestsExecutor |
withTestListBuilder(TestListBuilder builder) |
TestsExecutor |
withTestRetryCount(int count) |
public void execute(java.lang.String packagePrefix)
public TestsExecutor withTestListBuilder(TestListBuilder builder)
public TestsExecutor withBeforeExecution(java.util.function.Consumer<java.util.Collection<java.lang.String>> consumer)
public TestsExecutor withAfterExecution(java.util.function.Consumer<ExecutionResult> consumer)
public TestsExecutor withTestRetryCount(int count)
public TestsExecutor withTestFailureExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler)
public TestsExecutor withOnExecutionFailure(java.util.function.Consumer<java.lang.Exception> onFailure)
public TestsExecutor withOnExecutionSuccess(java.util.function.Consumer<ExecutionResult> onSuccess)
public TestsExecutor withEnableMail(MailConfig mailConfig)
public TestsExecutor withMailTablesBuilder(java.util.function.Function<ExecutionResult,java.util.List<MailTemplateBuilder.TableBuilder>> tablesBuilderFunction)
public TestsExecutor withOnTestCompletion(java.util.function.Consumer<TestJobResult> onTestCompletion)
public TestsExecutor withLogFileHandler(java.util.function.Consumer<java.nio.file.Path> testLogHandler)