|
TestBox 2.4.0 | ||||
FRAMES |
railo-context.Componenttestbox.system.runners.BaseRunner
testbox.system.runners.BDDRunner
public class BDDRunner
Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This TestBox runner is used to run and report on BDD style test suites.
Constructor Summary | |
---|---|
init(struct options, any testBox)
Constructor |
Method Summary | |
---|---|
string |
getOptions()
|
string |
getTestbox()
|
private array |
getTestSuites(any target, any targetMD)
Get all the test suites in the passed in bundle |
any |
run(any target, TestResult testResults, any callbacks)
Execute a BDD test on the incoming target and store the results in the incoming test results |
any |
setOptions(any options)
|
any |
setTestbox(any testbox)
|
private any |
testSuite(any target, any suite, any testResults, any bundleStats, any parentStats='[runtime expression]', any callbacks='[runtime expression]')
Test the incoming suite definition |
Methods inherited from class testbox.system.runners.BaseRunner |
---|
canRunBundle, canRunLabel, canRunSpec, canRunSuite, getMethodAnnotation, isValidTestMethod
|
Methods inherited from class railo-context.Component |
---|
|
Constructor Detail |
---|
public init(struct options, any testBox)
options
- The options for this runnertestBox
- The TestBox class referenceMethod Detail |
---|
public string getOptions()
public string getTestbox()
private array getTestSuites(any target, any targetMD)
target
- The target to get the suites fromtargetMD
- The metdata of the targetpublic any run(any target, TestResult testResults, any callbacks)
run
in interface
IRunner
target
- The target bundle CFC to testtestResults
- The test results object to keep track of results for this test casecallbacks
- A struct of listener callbacks or a CFC with callbacks for listening to progress of the testing: onBundleStart,onBundleEnd,onSuiteStart,onSuiteEnd,onSpecStart,onSpecEndpublic any setOptions(any options)
options
public any setTestbox(any testbox)
testbox
private any testSuite(any target, any suite, any testResults, any bundleStats, any parentStats='[runtime expression]', any callbacks='[runtime expression]')
target
- The target bundle CFCsuite
testResults
- The testing results objectbundleStats
- The bundle stats this suite belongs toparentStats
- If this is a nested test suite, then it will have some parentStats goodnesscallbacks
- The CFC or struct of callback listener methods
|
TestBox 2.4.0 | ||||
FRAMES |