return TestOutcomes.of(loader.loadFrom(reportsDirectory));
}
public AcceptanceTestLoader getOutcomeReporter() {
switch (formatConfiguration.getPreferredFormat()) {
case XML: return new XMLTestOutcomeReporter();
case JSON: return new JSONTestOutcomeReporter();
default: throw new IllegalArgumentException("Unsupported report format: " + formatConfiguration.getPreferredFormat());
}
}