|
TestBox 2.4.0 | ||||
FRAMES |
railo-context.Componenttestbox.system.runners.BaseRunner
testbox.system.runners.UnitRunner
public class UnitRunner
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 xUnit style test suites.
Constructor Summary | |
---|---|
init(struct options, any testBox)
Constructor |
Method Summary | |
---|---|
string |
getOptions()
|
string |
getTestbox()
|
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, 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 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 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, 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 callbacks='[runtime expression]')
target
- The target bundle CFCsuite
testResults
- The testing results objectbundleStats
- The bundle stats this suite belongs tocallbacks
- The CFC or struct of callback listener methods
|
TestBox 2.4.0 | ||||
FRAMES |