net.masterthought.cucumber.reducers.ReportFeatureAppendableMerger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-reporting Show documentation
Show all versions of cucumber-reporting Show documentation
Provides pretty html reports for Cucumber (Behaviour-Driven Development). It works by generating html from the
cucumber json report formatter. So can be used anywhere a json report is generated. Current use is in the
cucumber jenkins plugin and a maven mojo to generate the same report from mvn command line when running locally.
package net.masterthought.cucumber.reducers;
import net.masterthought.cucumber.json.Feature;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
final class ReportFeatureAppendableMerger implements ReportFeatureMerger {
@Override
public List merge(List features) {
return Optional.ofNullable(features).orElse(new ArrayList<>());
}
@Override
public boolean test(List reducingMethods) {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy