::xounit
Class RunTest

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::Test
              |
              +--::xounit::Assert
                    |
                    +--::xounit::TestCase
                          |
                          +--::xounit::Application
Class RunTest
superclass ::xounit::Application,
RunTest is an Application that will run individual tests
 within a certain package.
Variables
NameDefault ValueClassComment
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
NameComment
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

init

Description:
 Initializes the RunTest applications and
 runs the main method and then prints the
 results to stdout.
Arguments:
Overrides:
init in ::xotcl::Object
Code:
  ::xounit::RunTest instproc init {package args}  {
   

        my set tests $args
        my set package $package
        my runApplication runTestApplication 
        my printResults
    
}

runTestApplication

Description:
 Main method for the RunTest Application.
 Runs the selected tests from the selected package
 and records the results in a list.
Code:
  ::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} ]
        }
    
}