Confluence 2.9 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The JUnit Report Macro displays a summary of JUnit test results from a directory accessible from the Confluence server.
When generating reports, set ant formatter to 'XML'.
Junit Report Macro
{junitreport:directory=file:///*directory*/}
例:
{junitreport:directory=file:///C:/TEMP/}
Must be a directory name and not the xml file itself.
または
{junitreport:url=http://*host*/*path*}
例:
{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml}
ここで:
directory : URL of a directory containing your test result files.
url : URL of a particular test result XML file.
reportdetail: Detail for report. Can be 'all', 'fixture', 'summary' or 'failuresonly'.
debug: Shows the content of failures, as well as the error messages.
If your Confluence instance is not accessible by anonymous users and you want to parse a XML file attached in a space, the macro might fail to render. To make this work you need to add this parameter:
?os_username=your_username&os_password=your_password in the url. For example:
{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml?os_username=admin&os_password=admin}
関連トピック
Take me back to Confluence User Guide
