|
ColdBox Platform v3.8.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.testing.runners.BaseRunner
coldbox.system.testing.runners.UnitRunner
public class UnitRunner
******************************************************************************* 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 xUnit style test suites.
Property Summary | ||||
---|---|---|---|---|
Type | Property & Description | Default | Serializable | Required |
any
|
options
Attributes: |
|
true
|
false
|
Constructor Summary | |
---|---|
init(struct options)
Constructor |
Method Summary | |
---|---|
any |
GETOPTIONS()
|
UnitRunner |
SETOPTIONS(any options)
|
private array |
getTestMethods(any target, any testResults)
Retrieve the testing methods/specs from a given target |
private array |
getTestSuites(any target, any targetMD, any testResults)
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)
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 |
---|
public init(struct options)
options
- The options for this runnerProperty Detail |
---|
any options
default
- serializable
- truerequired
- falseMethod Detail |
---|
public any GETOPTIONS()
public UnitRunner SETOPTIONS(any options)
options
private array getTestMethods(any target, any testResults)
target
- The target to get the methods fromtestResults
private array getTestSuites(any target, any targetMD, any testResults)
target
- The target to get the suites fromtargetMD
- The metdata of the targettestResults
- The test results objectpublic any run(any target, TestResult testResults)
run
in interface
IRunner
target
- The target bundle CFC to testtestResults
- The test results object to keep track of results for this test caseprivate any testSuite(any target, any suite, any testResults, any bundleStats)
target
- The target bundle CFCsuite
testResults
- The testing results objectbundleStats
- The bundle stats this suite belongs to
|
ColdBox Platform v3.8.0 | ||||
FRAMES |