TestBox 1.1.0

testbox.testbox.system.testing.reports
Class ANTJUnitReporter

railo-context.Component
        extended by testbox.testbox.system.testing.reports.ANTJUnitReporter

public class ANTJUnitReporter
extends railo-context.Component

Copyright 2005-2009 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com A JUnit reporter for use with the ANT junitreport task, which uses an old version of JUnit formatting.


Constructor Summary
init()
 
Method Summary
private any buildProperties(any buffer)
private any buildTestCase(any buffer, any results, any specStats, any bundleStats, any fullName)
private any buildTestSuites(any buffer, any results, any bundleStats, any suiteStats, [any parentName=''])
private any genPropsFromCollection(any buffer, any collection)
 any getName()
          Get the name of the reporter
 any runReport(testbox.system.testing.testresult results, testbox.system.testing.testbox testbox, [struct options='[runtime expression]'])
          Do the reporting thing here using the incoming test results The report should return back in whatever format they desire and should set any Specifc browser types if needed
private any toJUnit(any results)
 
Methods inherited from class railo-context.Component
 

Constructor Detail

init

public init()

Method Detail

buildProperties

private any buildProperties(any buffer)

Parameters:
buffer

buildTestCase

private any buildTestCase(any buffer, any results, any specStats, any bundleStats, any fullName)

Parameters:
buffer
results
specStats
bundleStats
fullName

buildTestSuites

private any buildTestSuites(any buffer, any results, any bundleStats, any suiteStats, [any parentName=''])

Parameters:
buffer
results
bundleStats
suiteStats
parentName

genPropsFromCollection

private any genPropsFromCollection(any buffer, any collection)

Parameters:
buffer
collection

getName

public any getName()
Get the name of the reporter


runReport

public any runReport(testbox.system.testing.testresult results, testbox.system.testing.testbox testbox, [struct options='[runtime expression]'])
Do the reporting thing here using the incoming test results The report should return back in whatever format they desire and should set any Specifc browser types if needed.

Parameters:
results - The instance of the TestBox TestResult object to build a report on
testbox - The TestBox core object
options - A structure of options this reporter needs to build the report with

toJUnit

private any toJUnit(any results)

Parameters:
results

TestBox 1.1.0