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 StringCFG_ARGUMENTSstatic StringCFG_COVERAGE_HTML_DIRECTORY_NAMEstatic StringCFG_COVERAGE_HTML_ENABLEDstatic StringCFG_COVERAGE_HTML_ENABLED_BOOLEANstatic StringCFG_LOG_JUNIT_ENABLEDstatic StringCFG_LOG_JUNIT_ENABLED_BOOLEANstatic StringCFG_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()StringgetBuilderPath()@NotNull List<String>getCommandline()@Nullable StringgetCoverageHtmlDirectoryName()@NotNull Map<String,String>getExtraEnvironment()@Nullable StringgetLogJunitFilename()Get "Log test execution to an XML file" configuration value.@NotNull FilegetRootDirectory()@NotNull FilegetWorkingDirectory()booleanisCoverageHtmlEnabled()booleanisLogJunitEnabled()
-
-
-
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:
getCommandlinein interfacePhpUnitConfig
-
getExtraEnvironment
@NotNull public @NotNull Map<String,String> getExtraEnvironment()
- Specified by:
getExtraEnvironmentin interfacePhpUnitConfig
-
getArguments
@NotNull public @NotNull List<String> getArguments()
- Specified by:
getArgumentsin interfacePhpUnitConfig
-
getBuilderPath
public String getBuilderPath()
-
getCoverageHtmlDirectoryName
@Nullable public @Nullable String getCoverageHtmlDirectoryName()
-
isCoverageHtmlEnabled
public boolean isCoverageHtmlEnabled()
-
isLogJunitEnabled
public boolean isLogJunitEnabled()
- Specified by:
isLogJunitEnabledin interfacePhpUnitConfig
-
getLogJunitFilename
@Nullable public @Nullable String getLogJunitFilename()
Description copied from interface:PhpUnitConfigGet "Log test execution to an XML file" configuration value.- Specified by:
getLogJunitFilenamein interfacePhpUnitConfig- Returns:
- Path which is relative to source root.
-
getRootDirectory
@NotNull public @NotNull File getRootDirectory()
- Specified by:
getRootDirectoryin interfacePhpUnitConfig
-
getWorkingDirectory
@NotNull public @NotNull File getWorkingDirectory()
- Specified by:
getWorkingDirectoryin interfacePhpUnitConfig
-
-