net.masterthought.cucumber.generators.FeaturesOverviewPage 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.generators;
import net.masterthought.cucumber.Configuration;
import net.masterthought.cucumber.ReportBuilder;
import net.masterthought.cucumber.ReportResult;
import net.masterthought.cucumber.presentation.PresentationMode;
public class FeaturesOverviewPage extends AbstractPage {
public static final String WEB_PAGE = ReportBuilder.HOME_PAGE;
public FeaturesOverviewPage(ReportResult reportResult, Configuration configuration) {
super(reportResult, "overviewFeatures.vm", configuration);
}
@Override
public String getWebPage() {
return WEB_PAGE;
}
@Override
public void prepareReport() {
context.put("all_features", reportResult.getAllFeatures());
context.put("report_summary", reportResult.getFeatureReport());
context.put("parallel_testing", configuration.containsPresentationMode(PresentationMode.PARALLEL_TESTING));
context.put("classifications", configuration.getClassifications());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy