::xounit
Class TestSuiteContinuous

Heritage:
::xotcl::Object
  |
  +--::xounit::TestResultsTextFormatter
        |
        +--::xounit::TestResultsWebFormatter
              |
              +--::xounit::Test
                    |
                    +--::xox::Node
                          |
                          +--::xounit::TestSuite
Associated Test:
::xounit::test::TestTestSuiteContinuous

Class TestSuiteContinuous
superclass ::xounit::TestSuite,::xounit::TestResultsWebFormatter,
TestSuiteContinuous is a test runner that can repeatedly
 run tests after a delay to support continous testing.
Variables
NameDefault ValueClassComment
apiDoc  http://xotcllib.sourceforge.net/xodoc/  ::xounit::TestResultsWebFormatter
 url to API documentation
delay  30  ::xounit::TestSuiteContinuous
 The number of minutes to wait between iterations
location    ::xounit::TestResultsWebFormatter
 The directory to place the generated
    web pages in
nodeName    ::xox::Node
 
packages  ""  ::xounit::TestSuite
 The packages to reload before a test
results  ""  ::xounit::TestSuite
 The results from running this TestSuite
styleSheet  style.css  ::xounit::TestResultsWebFormatter
 CSS stylesheet to use in html file
textFormatter    ::xounit::TestResultsWebFormatter
 text formatter to use
times  -1  ::xounit::TestSuiteContinuous
 The number of iterations to run. -1 for infinite
title    ::xounit::TestResultsWebFormatter
 The of the web page generated
url    ::xounit::TestResultsWebFormatter
 A link from the title
webPath    ::xounit::TestResultsWebFormatter
 The url of the generate pages
 
Methods
NameComment
closeFileChannels {}   Forcibly closes all the open file channels that might have been left open by poorly written tests (especially mine)
forgetAll {package}   Package forget all the subpackages that are contained in a super package
reloadPackages {}   Reload all the packages that are being tested
   
Methods from ::xounit::TestSuite
run, runSuite, tests,
   
Methods from ::xounit::TestResultsWebFormatter
barGraph, cleanUpData, cleanUpLink, formatClassMethodsInError, formatObjectClassMethodLine, formatResults, formatWebResults, init, makeClassLink, makeClassMethodLink, organizeResults, passed, printError, printFailure, printPass, printPasses, printResult, printSubResult, rssItem, testSummary, writeWebResults,
   
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

closeFileChannels

Description:
 Forcibly closes all the open file channels that might have been
 left open by poorly written tests (especially mine).   It does
 not close stdout, stderr, or stdin.
Code:
  ::xounit::TestSuiteContinuous instproc closeFileChannels {}  {
   

        set channels [ ::xox::removeIf {
            expr {  [ ::xox::startsWith "$x" "sock" ] ||
                    "$x" == "stdout" ||
                    "$x" == "stdin" || 
                    "$x" == "stderr" }
        } x [ file channels ] ]

        foreach channel $channels {

            catch { close $channel }
        }
    
}

forgetAll

Description:
 Package forget all the subpackages that are contained in a super package.
Arguments:
Code:
  ::xounit::TestSuiteContinuous instproc forgetAll {package}  {
   

        set subs [ ::xox::removeIfNot { string match $package $name } name [ package names ] ]

        foreach sub $subs {

            package forget $sub
        }
    
}

reloadPackages

Description:
 Reload all the packages that are being tested.
Code:
  ::xounit::TestSuiteContinuous instproc reloadPackages {}  {
   

        foreach package [ my packages ] {

            my forgetAll $package
        }

        foreach package [ my packages ] {

            package require $package
        }
    
}