|
||||||
| SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC | |||||
::xotcl::Object
|
+--::xounit::TestResultsTextFormatter
|
+--::xounit::TestRunner
TestRunnerTextUI integrates TestRunner and TestResultsTextFormatter that allows automatic printing of results to stdout after running then tests. TestRunnerTextUI overrides runAllTests, runTests and calls printResults after these methods complete.
| Variables | |||
| Name | Default Value | Class | Comment |
results |
"" | ::xounit::TestRunner | a list of results from tests that have been run from this test runner |
| Methods | |
| Name | Comment |
runAllTests {args}
| runAllTests finds all subclasses of ::xounit::Test, makes new instances of those classes, and runs those test instances |
runTests {testClassList}
| runTests runs the tests for a list of classes and appends the result to the end of the results list |
| Methods from ::xounit::TestRunner |
findAllTestClasses, passed, runATest, runAllTests, runTests,
|
| 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 |
runAllTests finds all subclasses of ::xounit::Test, makes new instances of those classes, and runs those test instances. Optionally a namespace argument can be supplied that will limit the search for the subclasses to only that namespace. Normally this will called this way: set runner [ ::xounit::TestRunner new ] $runner runAllTests
args ::xounit::TestRunnerTextUI instproc runAllTests {args} {
::xotcl::next
::xotcl::my printResults [ ::xotcl::my results ]
}
runTests runs the tests for a list of classes and appends the result to the end of the results list.
testClassList ::xounit::TestRunnerTextUI instproc runTests {testClassList} {
::xotcl::next
::xotcl::my printResults [ ::xotcl::my results ]
}