lucee.Component testbox.system.runners.BaseRunner testbox.system.runners.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.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
options
|
true
|
false
|
|
any
|
testbox
|
true
|
false
|
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 lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
options
- The options for this runnertestBox
- The TestBox class referenceProperty Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Retrieve the testing methods/specs from a given target.
target
- The target to get the methods fromtestResults
Get all the test suites in the passed in bundle
target
- The target to get the suites fromtargetMD
- The metdata of the targettestResults
- The test results objectExecute a BDD test on the incoming target and store the results in the incoming test results
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,onSpecEndoptions
testbox
Test the incoming suite definition
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