lucee.Component testbox.system.TestResult
Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This object manages the results of testing with TestBox
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
struct
|
bundleStats
|
true
|
false
|
|
numeric
|
endTime
|
true
|
false
|
|
array
|
labels
|
true
|
false
|
|
numeric
|
startTime
|
true
|
false
|
|
array
|
testBundles
|
true
|
false
|
|
array
|
testSpecs
|
true
|
false
|
|
array
|
testSuites
|
true
|
false
|
|
numeric
|
totalBundles
|
true
|
false
|
|
numeric
|
totalDuration
|
true
|
false
|
|
numeric
|
totalError
|
true
|
false
|
|
numeric
|
totalFail
|
true
|
false
|
|
numeric
|
totalPass
|
true
|
false
|
|
numeric
|
totalSkipped
|
true
|
false
|
|
numeric
|
totalSpecs
|
true
|
false
|
|
numeric
|
totalSuites
|
true
|
false
|
Constructor Summary | |
---|---|
init([numeric bundleCount='0'], [array labels='[runtime expression]'], [array testBundles='[runtime expression]'], [array testSuites='[runtime expression]'], [array testSpecs='[runtime expression]'])
Constructor. |
Method Summary | |
---|---|
TestResult
|
end()
Finish recording stats. |
TestResult
|
endStats(struct stats)
End processing of a bundle stats reference. |
any
|
getBundleStats([string id])
Get a bundle stats by path as a struct or the entire stats array if no path passed. |
string
|
getEndTime()
|
string
|
getLabels()
|
struct
|
getMemento()
Get a flat representation of this result. |
string
|
getStartTime()
|
any
|
getSuiteStats(string id)
Get a suite stats by id from the reverse lookup. |
string
|
getTestBundles()
|
string
|
getTestSpecs()
|
string
|
getTestSuites()
|
string
|
getTotalBundles()
|
string
|
getTotalDuration()
|
string
|
getTotalError()
|
string
|
getTotalFail()
|
string
|
getTotalPass()
|
string
|
getTotalSkipped()
|
string
|
getTotalSpecs()
|
string
|
getTotalSuites()
|
TestResult
|
incrementSpecs(any count='1')
Increment the global specs found. |
any
|
incrementSpecStat(string type, struct stats)
Record a spec stat with its recursive chain. |
TestResult
|
incrementStat(any type='pass', [numeric count='1'])
Increment a global stat. |
TestResult
|
incrementSuites(any count='1')
Increment the global suites found. |
boolean
|
isComplete()
Verify testing is complete in results. |
any
|
setBundleStats(struct bundleStats)
|
any
|
setEndTime(numeric endTime)
|
any
|
setLabels(array labels)
|
any
|
setStartTime(numeric startTime)
|
any
|
setTestBundles(array testBundles)
|
any
|
setTestSpecs(array testSpecs)
|
any
|
setTestSuites(array testSuites)
|
any
|
setTotalBundles(numeric totalBundles)
|
any
|
setTotalDuration(numeric totalDuration)
|
any
|
setTotalError(numeric totalError)
|
any
|
setTotalFail(numeric totalFail)
|
any
|
setTotalPass(numeric totalPass)
|
any
|
setTotalSkipped(numeric totalSkipped)
|
any
|
setTotalSpecs(numeric totalSpecs)
|
any
|
setTotalSuites(numeric totalSuites)
|
struct
|
startBundleStats(string bundlePath, string name)
Start a new bundle stats and return its reference. |
struct
|
startSpecStats(string name, struct suiteStats)
Start a new spec stats and return its reference. |
struct
|
startSuiteStats(string name, struct bundleStats, [struct parentStats='[runtime expression]'])
Start a new suite stats and return its reference. |
any
|
storeDebugBuffer([array buffer])
Store latest bundle debug output buffer by adding it to the top bundle. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
bundleCount
- the count to init the results forlabels
- The lables to usetestBundles
- The test bundles that should execute ONLYtestSuites
- The test suites that should execute ONLYtestSpecs
- The test specs that should execut ONLYProperty Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Finish recording stats
End processing of a bundle stats reference
stats
- The bundle stats structure reference to completeGet a bundle stats by path as a struct or the entire stats array if no path passed.
id
- If passed, then retrieve by idGet a flat representation of this result
Get a suite stats by id from the reverse lookup
id
- Retrieve by idIncrement the global specs found
count
Record a spec stat with its recursive chain
type
- The type of stat to store: skipped,fail,error,passstats
Increment a global stat
type
- The type of stat to increment: fail,pass,error or skippedcount
Increment the global suites found
count
Verify testing is complete in results
bundleStats
endTime
labels
startTime
testBundles
testSpecs
testSuites
totalBundles
totalDuration
totalError
totalFail
totalPass
totalSkipped
totalSpecs
totalSuites
Start a new bundle stats and return its reference
bundlePath
name
Start a new spec stats and return its reference
name
- The name of the suitesuiteStats
- The suite stats reference this belongs to.Start a new suite stats and return its reference
name
- The name of the suitebundleStats
- The bundle stats reference this belongs to.parentStats
- If passed, the parent stats this suite belongs toStore latest bundle debug output buffer by adding it to the top bundle
buffer