::xounit
Class TestRunnerTextUI

Heritage:
::xotcl::Object
  |
  +--::xounit::TestResultsTextFormatter
        |
        +--::xounit::TestRunner
Class TestRunnerTextUI
superclass ::xounit::TestRunner,::xounit::TestResultsTextFormatter,
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
NameDefault ValueClassComment
results  ""  ::xounit::TestRunner
 a list of results from tests that have been run from this test runner
 
Methods
NameComment
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

Description:
 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
Arguments:
Overrides:
runAllTests in ::xounit::TestRunner
Code:
  ::xounit::TestRunnerTextUI instproc runAllTests {args}  {
   

        ::xotcl::next
        ::xotcl::my printResults [ ::xotcl::my results ]
    
}

runTests

Description:
 runTests runs the tests for a list of classes and
 appends the result to the end of the results list.
Arguments:
Overrides:
runTests in ::xounit::TestRunner
Code:
  ::xounit::TestRunnerTextUI instproc runTests {testClassList}  {
   

        ::xotcl::next

        ::xotcl::my printResults [ ::xotcl::my results ]
    
}