Confluence Docs 3.1 : JUnit Report Macro
This page last changed on Jun 03, 2009 by ggaskell.
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. The JUnit report macro appears as shown in the screenshot below. Screenshot: The JUnit Report Macro in Confluence
On this page: Usage with the Macro BrowserTo insert the JUnit report macro into a page using the Macro Browser,
Once you've found the JUnit report macro, fill in the URL fields and click 'insert' to add it to your page. Usage with the Wiki Markup EditorTo insert the JUnit report macro into a page using the Wiki Markup Editor, Enter the junitreport code tags into your document as follows. {junitreport:directory=file:///*directory*/} ParametersParameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
ExamplesLoading JUnit reports from a local drive {junitreport:directory=file:///C:/TEMP/}
{junitreport:url=http://*host*/*path*}
{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml}
If your Confluence instance is not accessible by anonymous users, specify logon credentials with the os_username and os_password URL parameters (as part of the macro's url parameter). In this case, we are specifying a username of "admin" and a password of "admin". {junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml?os_username=admin&os_password=admin}
RELATED TOPICSTake me back to the Confluence User Guide. |
![]() |
Document generated by Confluence on Dec 10, 2009 18:45 |