::xounit::test
Class TestTestRunner

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::Test
              |
              +--::xounit::Assert
                    |
                    +--::xounit::TestCase
Tested Class:
::xounit::TestRunner

Class TestTestRunner
superclass ::xounit::TestCase,

Variables
NameDefault ValueClassComment
currentTestMethod    ::xounit::TestCase
 name of the currently running test method.
nodeName    ::xox::Node
 
result    ::xounit::TestCase
 the result for the current run.
 
Methods
NameComment
testInit {}  
testRunAllTests {}  
testRunAllTestsTextUI {}  
testRunTests {}  
   
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

testInit

Description:
 
Code:
  ::xounit::test::TestTestRunner instproc testInit {}  {
   

        set runner [ ::xounit::TestRunner new ]

        my assert [ $runner passed ]
        my assert [ $runner exists results ]
        my assertEquals [ llength [ $runner results ] ] 0 
    
}

testRunAllTests

Description:
 
Code:
  ::xounit::test::TestTestRunner instproc testRunAllTests {}  {
   

        set runner [ ::xounit::TestRunner new ]
        
        #$runner runAllTests ::xox::test

        my assert [ $runner passed ]
        my assert [ $runner exists results ]
        #my assertEquals [ llength [ $runner results ] ] 1
    
}

testRunAllTestsTextUI

Description:
 
Code:
  ::xounit::test::TestTestRunner instproc testRunAllTestsTextUI {}  {
   

        set runner [ ::xounit::TestRunnerTextUI new ]
        
        #$runner runAllTests ::xox::test

        my assert [ $runner passed ]
        my assert [ $runner exists results ]
        #my assertEquals [ llength [ $runner results ] ] 1
    
}

testRunTests

Description:
 
Code:
  ::xounit::test::TestTestRunner instproc testRunTests {}  {
   

        set runner [ ::xounit::TestRunner new ]

        $runner runTests ::xounit::test::TestAssert

        my assert [ $runner passed ]
        my assert [ $runner exists results ]
        my assertEquals [ llength [ $runner results ] ] 1
    
}