commandbox.system.modules_app.testbox-commands.models

Class CLIRenderer

lucee.Component
    extended by commandbox.system.modules_app.testbox-commands.models.CLIRenderer

Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I render TestBox data out for the CLI

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Method Summary
    any genSuiteReport(any suiteStats, any bundleStats, [any level='0'], any print, any verbose)
         Recursive Output for suites.
    private any getAggregatedColor([any errors='0'], [any failures='0'], [any skips='0'])
         Get aggregate color for display.
    any getIndicator(any status)
         Get the indicator status.
    private any headerCell(any text)
         Create a header cell.
    any render([any print], [any testData], [any verbose])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    genSuiteReport

    public any genSuiteReport(any suiteStats, any bundleStats, [any level='0'], any print, any verbose)

    Recursive Output for suites

    Parameters:
    suiteStats - Suite stats
    bundleStats - Bundle stats
    level - Generation level
    print - The print Buffer
    verbose - The verbose indicator

    getAggregatedColor

    private any getAggregatedColor([any errors='0'], [any failures='0'], [any skips='0'])

    Get aggregate color for display

    Parameters:
    errors - number of errors
    failures - number of failures
    skips - number of skipped specs

    getIndicator

    public any getIndicator(any status)

    Get the indicator status

    Parameters:
    status - The status to get back

    headerCell

    private any headerCell(any text)

    Create a header cell

    Parameters:
    text - The header text

    render

    public any render([any print], [any testData], [any verbose])

    Parameters:
    print - a print buffer to use
    testData - test results from TestBox
    verbose - Display information about passing and skipped specs