Interface SequentialExecutionReporter
-
- All Superinterfaces:
ExecutionReporter
- All Known Implementing Classes:
DelegatingSequentialExecutionReporter,EmptySequentialExecutionReporter,LoggingSequentialExecutionReporter,LoggingSequentialExecutionReporterForGeneration,LoggingSequentialExecutionReporterForGenerationJava
public interface SequentialExecutionReporter extends ExecutionReporter
TheInputParameterModel-based equivalent to aGenerationReporter. Instead ofTestInputGroups this usesTestInputGroupContexts so that identifies can be converted usingArgumentConverters. Additionally, this means that all test inputs are converted into a sensible format (Combination).The method in this class can be split into three categories. The first one deals with all lifecycle events from
TestInputGroupContexts. The second one with actual execution of test inputs, and the third one with event reporting capabilities. Actual test execution reporting is not done perTestInputGroupContext, as caching results in some tests getting executed for multipleTestInputGroupContexts.All methods have empty default implementations so that each implementing class can choose what methods to override.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidfaultCharacterizationFinished(TestInputGroupContext context, Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations, Collection<Combination> possiblyFailureInducingCombinations)Called if fault characterization for aTestInputGroupis completely finished.default voidfaultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)Called if a fault characterization started for aTestInputGroup.default voidfaultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)Called if additional test inputs for the fault characterization process of oneTestInputGrouphave been generated by the algorithm given tofaultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm).default voidtestInputGroupFinished(TestInputGroupContext context)Called if aTestInputGrouphas completely finished.default voidtestInputGroupGenerated(TestInputGroupContext context, List<Combination> testInputs)Called if a newTestInputGrouphas been generated by aTestInputGroupGenerator.-
Methods inherited from interface de.rwth.swc.coffee4j.engine.report.ExecutionReporter
getReportLevel, modelModified, report, testInputExecutionFinished, testInputExecutionStarted
-
-
-
-
Method Detail
-
testInputGroupGenerated
default void testInputGroupGenerated(TestInputGroupContext context, List<Combination> testInputs)
Called if a newTestInputGrouphas been generated by aTestInputGroupGenerator. The generator is given inside theTestInputGroupContext.- Parameters:
context- all important information about one grouptestInputs- the initially generated test inputs
-
testInputGroupFinished
default void testInputGroupFinished(TestInputGroupContext context)
Called if aTestInputGrouphas completely finished. This means fault characterization is finished (if it was enabled), and no more methods in this class will be called in reference to this context.- Parameters:
context- the context of the group which was finished
-
faultCharacterizationStarted
default void faultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)
Called if a fault characterization started for aTestInputGroup. The process will end again whenfaultCharacterizationFinished(TestInputGroupContext, Map, Collection)is called.- Parameters:
context- the context of the group for which fault characterization startedalgorithm- the algorithm which will be used to characterize faults. This is a reference to the real algorithm. Do not modify as this will most likely have unintended side effects
-
faultCharacterizationFinished
default void faultCharacterizationFinished(TestInputGroupContext context, Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations, Collection<Combination> possiblyFailureInducingCombinations)
Called if fault characterization for aTestInputGroupis completely finished. This meansfaultCharacterizationTestInputsGenerated(TestInputGroupContext, List)will never be called again for this context, and soon after this methodtestInputGroupFinished(TestInputGroupContext)is called.- Parameters:
context- the context of the group for which fault characterization finishedexceptionInducingCombinations- all found exception-inducing combinationspossiblyFailureInducingCombinations- all possibly failure-inducing combinations found. The order may or may not be based on an algorithm internal probability metric of the combinations being failure-inducing
-
faultCharacterizationTestInputsGenerated
default void faultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)
Called if additional test inputs for the fault characterization process of oneTestInputGrouphave been generated by the algorithm given tofaultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm). This method can only be called (multiple times) between calls tofaultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm)andfaultCharacterizationFinished(TestInputGroupContext, Map, Collection).- Parameters:
context- the context of the group for which additional test inputs were generatedtestInputs- all additionally generated test inputs
-
-