|
||||||
SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC |
::xotcl::Object | +--::xox::Node | +--::xounit::Test | +--::xounit::Assert | +--::xounit::TestCase | +--::xounit::Application
RunTest is an Application that will run individual tests within a certain package.
Variables | |||
Name | Default Value | Class | Comment |
currentTestMethod |
::xounit::TestCase | name of the currently running test method. |
|
formatterClass |
::xounit::TestResultsTextFormatter | ::xounit::Application | test results formatter used to display results of application |
name |
Application | ::xounit::Application | the name of the Application |
nodeName |
::xox::Node | ||
package |
::xounit::RunTest | package to load |
|
result |
::xounit::TestCase | the result for the current run. |
|
results |
"" | ::xounit::Application | failures, errors, and passes from Application execution |
tests |
::xounit::RunTest | tests to run |
Methods | |
Name | Comment |
init {package args}
| Initializes the RunTest applications and runs the main method and then prints the results to stdout |
runTestApplication {}
| Main method for the RunTest Application |
Methods from ::xounit::Application |
printResults, runApplication, runApplicationAndReport,
|
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 |
Initializes the RunTest applications and runs the main method and then prints the results to stdout.
package
args
::xounit::RunTest instproc init {package args} { my set tests $args my set package $package my runApplication runTestApplication my printResults }
Main method for the RunTest Application. Runs the selected tests from the selected package and records the results in a list.
::xounit::RunTest instproc runTestApplication {} { my instvar package tests set aRunner [ ::xounit::TestRunner new ] package require $package package require ${package}::test foreach test $tests { my lappend results [ $aRunner runATest ${package}::test::${test} ] } }