|
||||||
SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC |
::xotcl::Object | +--::xox::Node | +--::xounit::TestResult
TestError is a datastructure to hold information about a test failure. It contains the information about the name of the test, the specific test component, and the error message received from the test.
Variables | |||
Name | Default Value | Class | Comment |
error |
"" | ::xounit::TestError | error message from the test failure |
name |
::xounit::TestResult | name of the test |
|
nodeName |
::xox::Node | ||
test |
"" | ::xounit::TestError | name of the test component |
testedClass |
"" | ::xounit::TestResult | the class tested |
testedMethod |
"" | ::xounit::TestResult | the method tested |
testedObject |
"" | ::xounit::TestResult | the object tested |
Methods | |
Name | Comment |
message {}
| returns the error message |
numberOfErrors {}
| returns the number of errors in this TestResult |
numberOfFailures {}
| returns the number of failures in this TestResult |
numberOfPasses {}
| returns the number of passes in this TestResult |
numberOfTests {}
| returns the number of tests in this TestResult |
passed {}
| returns 0 (false) |
Methods from ::xounit::TestResult |
addNewResult, addResult, deepErrors, deepFailures, deepPasses, errors, failures, numberOfErrors, numberOfFailures, numberOfPasses, numberOfTests, passPercent, passed, passes, results, tests,
|
Methods from ::xotcl::Object |
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
|
Instproc Detail |
returns the error message
::xounit::TestError instproc message {} { return [ my error ] }
returns the number of errors in this TestResult
::xounit::TestError instproc numberOfErrors {} { return 1 }
returns the number of failures in this TestResult
::xounit::TestError instproc numberOfFailures {} { return 0 }
returns the number of passes in this TestResult
::xounit::TestError instproc numberOfPasses {} { return 0 }
returns the number of tests in this TestResult
::xounit::TestError instproc numberOfTests {} { return 1 }
returns 0 (false)
::xounit::TestError instproc passed {} { return 0 }