All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.core.SerenityReports Maven / Gradle / Ivy

There is a newer version: 4.1.20
Show newest version
package net.serenitybdd.core;

import net.thucydides.core.reports.ReportService;
import net.thucydides.core.webdriver.Configuration;

/**
 * Provide supporting methods for creating report listeners and generating reports.
 */
public class SerenityReports {

    public static ReportService getReportService(Configuration systemConfiguration) {
        return new ReportService(systemConfiguration.getOutputDirectory(), ReportService.getDefaultReporters());
    }

    public static SerenityListeners setupListeners(Configuration systemConfiguration) {
        return new SerenityListeners(systemConfiguration);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy