coldbox.system.testing.runners

Class BaseRunner

WEB-INF.cftags.component
        extended by coldbox.system.testing.runners.BaseRunner
Class Attributes:
None
Direct Known Subclasses:
BDDRunner , UnitRunner

******************************************************************************* Copyright 2005-2009 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* The TestBox main base runner which has all the common methods needed for runner implementations.

Method Summary
boolean canRunBundle(any bundlePath, any testResults)
     Checks if we can run the test bundle due to using testBundles arguments or incoming URL filters.
boolean canRunLabel(any incomingLabels, any testResults)
     Checks if the incoming labels are good for running.
boolean canRunSpec(any name, any testResults)
     Checks if we can run the spec due to using testSpec arguments or incoming URL filters.
boolean canRunSuite(any suite, any testResults)
     Checks if we can run the suite due to using testSuite arguments or incoming URL filters.
any getMethodAnnotation(any target, any name, [any defaultValue=''])
     Get metadata from a method.
boolean isValidTestMethod(any methodName, any target)
     Validate the incoming method name is a valid TestBox test method name.
 
Methods inherited from class WEB-INF.cftags.component
None

Method Detail

canRunBundle

public boolean canRunBundle(any bundlePath, any testResults)

Checks if we can run the test bundle due to using testBundles arguments or incoming URL filters.

Parameters:
bundlePath
testResults - The testing results object

canRunLabel

public boolean canRunLabel(any incomingLabels, any testResults)

Checks if the incoming labels are good for running

Parameters:
incomingLabels - The incoming labels to test against this runner's labels.
testResults - The testing results object

canRunSpec

public boolean canRunSpec(any name, any testResults)

Checks if we can run the spec due to using testSpec arguments or incoming URL filters.

Parameters:
name - The spec name
testResults - The testing results object

canRunSuite

public boolean canRunSuite(any suite, any testResults)

Checks if we can run the suite due to using testSuite arguments or incoming URL filters.

Parameters:
suite - The suite definition
testResults - The testing results object

getMethodAnnotation

public any getMethodAnnotation(any target, any name, [any defaultValue=''])

Get metadata from a method

Parameters:
target - The target method
name - The annotation to look for
defaultValue - The default value to return if not found

isValidTestMethod

public boolean isValidTestMethod(any methodName, any target)

Validate the incoming method name is a valid TestBox test method name

Parameters:
methodName - The method name to validate
target - The target object