public class Commands
extends java.lang.Object
| Constructor and Description |
|---|
Commands(java.nio.file.Path allureHome) |
| Modifier and Type | Method and Description |
|---|---|
protected io.qameta.allure.core.Configuration |
createReportConfiguration(ConfigOptions profile)
Creates report configuration for a given profile.
|
ExitCode |
generate(java.nio.file.Path reportDirectory,
java.util.List<java.nio.file.Path> resultsDirectories,
boolean clean,
ConfigOptions profile) |
CommandlineConfig |
getConfig(ConfigOptions configOptions) |
java.util.Optional<java.nio.file.Path> |
getConfigFile(ConfigOptions configOptions) |
java.lang.String |
getConfigFileName(java.lang.String profile) |
ExitCode |
listPlugins(ConfigOptions configOptions) |
ExitCode |
open(java.nio.file.Path reportDirectory,
java.lang.String host,
int port) |
protected void |
openBrowser(java.net.URI url)
Open the given url in default system browser.
|
ExitCode |
serve(java.util.List<java.nio.file.Path> resultsDirectories,
java.lang.String host,
int port,
ConfigOptions configOptions) |
protected org.eclipse.jetty.server.Server |
setUpServer(java.lang.String host,
int port,
java.nio.file.Path reportDirectory)
Set up Jetty server to serve Allure Report.
|
public CommandlineConfig getConfig(ConfigOptions configOptions)
public java.util.Optional<java.nio.file.Path> getConfigFile(ConfigOptions configOptions)
public java.lang.String getConfigFileName(java.lang.String profile)
public ExitCode generate(java.nio.file.Path reportDirectory, java.util.List<java.nio.file.Path> resultsDirectories, boolean clean, ConfigOptions profile)
public ExitCode serve(java.util.List<java.nio.file.Path> resultsDirectories, java.lang.String host, int port, ConfigOptions configOptions)
public ExitCode open(java.nio.file.Path reportDirectory, java.lang.String host, int port)
public ExitCode listPlugins(ConfigOptions configOptions)
protected io.qameta.allure.core.Configuration createReportConfiguration(ConfigOptions profile)
profile - selected profile.protected org.eclipse.jetty.server.Server setUpServer(java.lang.String host,
int port,
java.nio.file.Path reportDirectory)
protected void openBrowser(java.net.URI url)
throws java.io.IOException
java.io.IOException