Confluence Docs 3.3 : JUnit Report Macro
This page last changed on Dec 17, 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 options that you can include in Confluence macros to control the content or format of the macro output. The table below lists relevant parameters for this macro. Parameter names are different in the macro browser and in wiki markup. Below we show the macro browser parameter names in bold text, and the equivalent wiki markup parameters in (bracketed) text. If we do not show any parameter name for the wiki markup, then you should leave out the parameter name and simply include the parameter value as the first parameter, immediately after the colon (:).
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's Guide. |
![]() |
Document generated by Confluence on Jul 09, 2010 01:08 |