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

ru.yandex.qatools.allure.command.ReportCommand Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package ru.yandex.qatools.allure.command;

import io.airlift.airline.Option;
import io.airlift.airline.OptionType;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @author Artem Eroshenko 
 */
public abstract class ReportCommand extends AbstractCommand {

    @Option(name = {"-o", "--report-dir", "--output"}, type = OptionType.COMMAND,
            description = "The directory to generate Allure report into.")
    protected String reportDirectory = "allure-report";

    /**
     * The string representation of path to the report directory.
     */
    protected String getReportDirectory() {
        return reportDirectory;
    }

    /**
     * The path to the report directory {@link #getReportDirectory()}.
     */
    protected Path getReportDirectoryPath() {
        return Paths.get(getReportDirectory());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy