The JUnit Report macro displays a summary of JUnit test results from a directory accessible by the Confluence server. JUnit is a unit testing framework which allows programmers to ensure that individual units of Java source code are functioning correctly.

JUnit Report マクロは以下のスクリーンショットのように表示されます。

スクリーンショット: Confluence の JUnit レポート マクロ

注:JUnit レポート マクロからレポートを生成する場合は、Apache Ant フォーマッターを「XML」に設定します。

JUnit レポート マクロの使用

ページに JUnit レポート マクロを追加するには:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

オートコンプリートでマクロを素早く入力する方法

Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.

既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。

パラメーター

パラメータは、マクロ出力の内容や形式を制御するために設定するオプションです。

パラメーター

既定

説明

URL of the test result XML file

なし

特定のテスト結果 XML ファイルの URL。両方を使用している場合は、テスト結果 XML ファイルのディレクトリ (URL) が上書きされます。

Confluence インスタンスからの例: http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml

匿名ユーザー アクセスのない Confluence インストールの場合、URL パラメーター形式でこのパラメーターの一部としてログイン資格情報を指定できます。

  • os_username — JUnit テスト結果へのアクセス権限を持つ Confluence ユーザーのユーザー名。
  • os_passwordos_username パラメータで指定した Confluence ユーザーのパスワード。

Directory (URL) of your test result files

なし

テスト結果ファイルを含むディレクトリの URL。XML ファイル自体ではなく、ディレクトリ名にする必要があります。両方を使用している場合は、テスト結果 XML ファイルの URL が上書きされます。

Example, for a local drive: file:///C:/TEMP/

ネットワーク ドライブでの例: http://*host*/*path*

Report Detail

すべて

レポートの詳細すべて固定概要 または failuresonly を使用できます。

Debug

なし

障害の内容とともに、エラー メッセージを表示します。

コー​​ドの例

参照先:

関連トピック

マクロでの作業

Take me back to the Confluence User's Guide.

  • ラベルなし