testbox.system.reports

Class ANTJUnitReporter

railo-context.Component
        extended by testbox.system.reports.ANTJUnitReporter
Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | 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(TestResult results, TestBox testbox, [struct options='[runtime expression]'])
         Do the reporting thing here using the incoming test results.
    private any toJUnit(any results)
     
    Methods inherited from class railo-context.Component
    None

    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(TestResult results, 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