This page describes how to configure a PHPUnit task.
始める前に
- To use this task, you will need to install PHPUnit and reference the path to your PHP command-line interpreter, (e.g.
/usr/bin/phpuniton Ubuntu).
PHPUnit タスクを設定する方法は次のとおりです。
- ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
- 既存のタスクの名前をクリックするか、[タスクを追加] > [PHPUnit] (または [PHPUnit 3.3.X] などの別のオプション) の順にクリックして新しいタスクを作成します。
タスク設定の更新
タスクの説明 Bamboo で表示されるタスクの説明を入力します。 このタスクを無効化 オンまたはオフにすることで、選択的にこのタスクを実行します。 実行可能ファイル 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 . 引数 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. 環境変数 (Optional) Additional system environment variables that you want to pass to your build. Note that existing environment variables are automatically available to the executable. You can also include Bamboo global or build-specific variables (see Using global, plan or build-specific variables).
Multiple variables should be separated with spaces. Parameters with spaces must be quoted (e.g ANT_OPTS="-Xms200m -Xmx700m").Working Sub Directory (オプション) Bamboo が実行ファイルを実行する、ジョブのルート ディレクトリに相対的な代替サブディレクトリ。ルート ディレクトリには、ジョブの構成済みソース リポジトリから確認されたものがすべて含まれます。このフィールドを空白のまま残した場合、Bamboo はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。 テスト実行を XML ファイルに記録する Select if you want PHPUnit to record test results in JUnit format. This format is also used by TestNG.
Test Result File — the relative location, and name, of the file to record PHPUnit test results.コード カバレッジ レポートを HTML 形式で生成する PHPUnit に HTML 形式でコード カバレッジ データを生成させるかどうかを選択します (例: PHPUnit HTML コード カバレッジ レポート)。
HTML コード カバレッジ ディレクトリ — コード カバレッジ レポートを保存するディレクトリの相対的位置。- 保存をクリックします。
