To use this executable, you will need to install PHPUnit and reference the path to your PHP command-line interpreter, (e.g. /usr/bin/phpunit on Ubuntu).
To configure a PHPUnit executable for a task:
Navigate to the task configuration for the job (this will be the default job if creating a new plan).
Click the name of the desired command task, or click Add Task and then a PHPUnit option (e.g. 'PHPUnit') if creating a new task.
タスク設定の更新
Task Description --— Enter a description of the task, for display in Bamboo.
Executable — Select the PHPUnit executable that you wish to configure for this task (e.g. "PHPUnit 3.3.x" or "PHPUnit"). The executable that you select will become one of the task's capability requirements (and hence, one of the job's requirements). For details, please see Configuring a Job's Requirements.
Arguments — Type the name of the directory/files that will be analysed recursively by PHPUnit. The default value is "." (i.e. the working subdirectory, if specified). You must specify at least one argument.
If required, update the system environment variables and working directory settings:
Update the following build parameters:
Log test execution to XML file — Select if you want PHPUnit to record test results in JUnit format. This format is also used by TestNG.
Test Result File — Enter the location of the file to record JUnit test results.
Generate code coverage report in HTML format — Select if you want PHPUnit to generate code coverage data in HTML format (e.g. for PHPUnit HTML Code Coverage reports).
HTML Code Coverage Directory — Enter the location of the directory to record HTML coverage data.