Class AbstractPhpUnitConfig
- java.lang.Object
-
- com.atlassian.bamboo.plugins.php.task.AbstractPhpUnitConfig
-
- All Implemented Interfaces:
PhpUnitConfig
- Direct Known Subclasses:
PhpUnit33XConfigImpl
,PhpUnitConfigImpl
public abstract class AbstractPhpUnitConfig extends Object implements PhpUnitConfig
-
-
Field Summary
Fields Modifier and Type Field Description static String
CFG_ARGUMENTS
static String
CFG_COVERAGE_HTML_DIRECTORY_NAME
static String
CFG_COVERAGE_HTML_ENABLED
static String
CFG_COVERAGE_HTML_ENABLED_BOOLEAN
static String
CFG_LOG_JUNIT_ENABLED
static String
CFG_LOG_JUNIT_ENABLED_BOOLEAN
static String
CFG_LOG_JUNIT_FILENAME
-
Fields inherited from interface com.atlassian.bamboo.plugins.php.task.PhpUnitConfig
PLUGIN_KEY_PHPUNIT, PLUGIN_KEY_PHPUNIT33X
-
-
Constructor Summary
Constructors Constructor Description AbstractPhpUnitConfig(@NotNull TaskContext taskContext, @NotNull CapabilityContext capabilityContext, @NotNull String capabilityPrefix, @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract @NotNull List<String>
buildCommandline()
@NotNull List<String>
getArguments()
String
getBuilderPath()
@NotNull List<String>
getCommandline()
@Nullable String
getCoverageHtmlDirectoryName()
@NotNull Map<String,String>
getExtraEnvironment()
@Nullable String
getLogJunitFilename()
Get "Log test execution to an XML file" configuration value.@NotNull File
getRootDirectory()
@NotNull File
getWorkingDirectory()
boolean
isCoverageHtmlEnabled()
boolean
isLogJunitEnabled()
-
-
-
Field Detail
-
CFG_ARGUMENTS
public static final String CFG_ARGUMENTS
- See Also:
- Constant Field Values
-
CFG_LOG_JUNIT_ENABLED
public static final String CFG_LOG_JUNIT_ENABLED
- See Also:
- Constant Field Values
-
CFG_LOG_JUNIT_ENABLED_BOOLEAN
public static final String CFG_LOG_JUNIT_ENABLED_BOOLEAN
- See Also:
- Constant Field Values
-
CFG_LOG_JUNIT_FILENAME
public static final String CFG_LOG_JUNIT_FILENAME
- See Also:
- Constant Field Values
-
CFG_COVERAGE_HTML_ENABLED
public static final String CFG_COVERAGE_HTML_ENABLED
- See Also:
- Constant Field Values
-
CFG_COVERAGE_HTML_ENABLED_BOOLEAN
public static final String CFG_COVERAGE_HTML_ENABLED_BOOLEAN
- See Also:
- Constant Field Values
-
CFG_COVERAGE_HTML_DIRECTORY_NAME
public static final String CFG_COVERAGE_HTML_DIRECTORY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractPhpUnitConfig
public AbstractPhpUnitConfig(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull CapabilityContext capabilityContext, @NotNull @NotNull String capabilityPrefix, @NotNull @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
-
-
Method Detail
-
getCommandline
@NotNull public @NotNull List<String> getCommandline()
- Specified by:
getCommandline
in interfacePhpUnitConfig
-
getExtraEnvironment
@NotNull public @NotNull Map<String,String> getExtraEnvironment()
- Specified by:
getExtraEnvironment
in interfacePhpUnitConfig
-
getArguments
@NotNull public @NotNull List<String> getArguments()
- Specified by:
getArguments
in interfacePhpUnitConfig
-
getBuilderPath
public String getBuilderPath()
-
getCoverageHtmlDirectoryName
@Nullable public @Nullable String getCoverageHtmlDirectoryName()
-
isCoverageHtmlEnabled
public boolean isCoverageHtmlEnabled()
-
isLogJunitEnabled
public boolean isLogJunitEnabled()
- Specified by:
isLogJunitEnabled
in interfacePhpUnitConfig
-
getLogJunitFilename
@Nullable public @Nullable String getLogJunitFilename()
Description copied from interface:PhpUnitConfig
Get "Log test execution to an XML file" configuration value.- Specified by:
getLogJunitFilename
in interfacePhpUnitConfig
- Returns:
- Path which is relative to source root.
-
getRootDirectory
@NotNull public @NotNull File getRootDirectory()
- Specified by:
getRootDirectory
in interfacePhpUnitConfig
-
getWorkingDirectory
@NotNull public @NotNull File getWorkingDirectory()
- Specified by:
getWorkingDirectory
in interfacePhpUnitConfig
-
-