Class DynamicTestsOutcomeAggregator

java.lang.Object
net.serenitybdd.junit5.DynamicTestsOutcomeAggregator

public class DynamicTestsOutcomeAggregator extends Object
Aggregates test outcomes from JUnit 5 @TestFactory dynamic tests into a single report per factory method. Similar to how parameterized tests are aggregated.
  • Constructor Details

    • DynamicTestsOutcomeAggregator

      public DynamicTestsOutcomeAggregator(List<net.thucydides.model.domain.TestOutcome> testOutcomes)
  • Method Details

    • aggregateTestOutcomesByTestFactory

      public List<net.thucydides.model.domain.TestOutcome> aggregateTestOutcomesByTestFactory()
      Aggregates dynamic test outcomes by their parent TestFactory method. Each dynamic test becomes a nested step within the aggregated outcome.
      Returns:
      A list of aggregated test outcomes, one per TestFactory method