Confluence 5.4 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
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 レポート マクロを追加するには:
オートコンプリートでマクロを素早く入力する方法 既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。
パラメーター
Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).
パラメーター | 既定 | 説明 |
|---|---|---|
URL of the test result XML file | なし | 特定のテスト結果 XML ファイルの URL。両方を使用している場合は、テスト結果 XML ファイルのディレクトリ (URL) が上書きされます。 Confluence インスタンスからの例: 匿名ユーザー アクセスのない Confluence インストールの場合、URL パラメーター形式でこのパラメーターの一部としてログイン資格情報を指定できます。
|
Directory (URL) of your test result files | なし | テスト結果ファイルを含むディレクトリの URL。XML ファイル自体ではなく、ディレクトリ名にする必要があります。両方を使用している場合は、テスト結果 XML ファイルの URL が上書きされます。 Example, for a local drive: ネットワーク ドライブでの例: |
Report Detail | すべて | レポートの詳細すべて、固定、概要 または failuresonly を使用できます。 |
| Debug | なし | 障害の内容とともに、エラー メッセージを表示します。 |
コードの例
参照先:
関連トピック
Take me back to the Confluence User's Guide.

