coldbox.system.testing.runners

Class BDDRunner

WEB-INF.cftags.component
        extended by coldbox.system.testing.runners.BaseRunner
            extended by coldbox.system.testing.runners.BDDRunner
Class Attributes:
  • accessors : true
  •  
    All Implemented Interfaces:
    cachebox.build-coldbox.coldbox.system.testing.runners.IRunner

    ******************************************************************************* Copyright 2005-2009 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* This TestBox runner is used to run and report on BDD style test suites.

    Property Summary
    type property default serializable required
    any options


    true false
    Constructor Summary
    init(struct options)
          Constructor.
    Method Summary
    any GETOPTIONS()
    BDDRunner SETOPTIONS(any options)
    private array getTestSuites(any target, any targetMD)
         Get all the test suites in the passed in bundle.
    any run(any target, TestResult testResults)
         Execute a BDD test on the incoming target and store the results in the incoming test results.
    private any testSuite(any target, any suite, any testResults, any bundleStats, [any parentStats='[runtime expression]'])
         Test the incoming suite definition.
     
    Methods inherited from class coldbox.system.testing.runners.BaseRunner
    canRunBundle, canRunLabel, canRunSpec, canRunSuite, getMethodAnnotation, isValidTestMethod
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init(struct options)

    Constructor

    Parameters:
    options - The options for this runner

    Property Detail

    options

    property any options

    Attributes:
    serializable - true
    required - false

    Method Detail

    GETOPTIONS

    public any GETOPTIONS()


    SETOPTIONS

    public BDDRunner SETOPTIONS(any options)

    Parameters:
    options

    getTestSuites

    private array getTestSuites(any target, any targetMD)

    Get all the test suites in the passed in bundle

    Parameters:
    target - The target to get the suites from
    targetMD - The metdata of the target

    run

    public any run(any target, TestResult testResults)

    Execute a BDD test on the incoming target and store the results in the incoming test results

    Specified by:
    run in interface cachebox.build-coldbox.coldbox.system.testing.runners.IRunner
    Parameters:
    target - The target bundle CFC to test
    testResults - The test results object to keep track of results for this test case

    testSuite

    private any testSuite(any target, any suite, any testResults, any bundleStats, [any parentStats='[runtime expression]'])

    Test the incoming suite definition

    Parameters:
    target - The target bundle CFC
    suite
    testResults - The testing results object
    bundleStats - The bundle stats this suite belongs to
    parentStats - If this is a nested test suite, then it will have some parentStats goodness