Confluence 4.0 : 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*/} ParametersWhen editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser. Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.
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 {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 Sep 19, 2011 02:35 |