| 
 | ||||||
| SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC | |||||
::xotcl::Object
  |
  +--::xounit::TestResultsTextFormatter
        |
        +--::xounit::TestResultsWebFormatter
              |
              +--::xounit::Test
                    |
                    +--::xox::Node
                          |
                          +--::xounit::TestSuite
            TestSuiteContinuous is a test runner that can repeatedly run tests after a delay to support continous testing.
| Variables | |||
| Name | Default Value | Class | Comment | 
| 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 | |
| Name | Comment | 
|  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 ::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 | 
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.
  ::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 }
        }
    
}
Package forget all the subpackages that are contained in a super package.
package   ::xounit::TestSuiteContinuous instproc forgetAll {package}  {
   
        set subs [ ::xox::removeIfNot { string match $package $name } name [ package names ] ]
        foreach sub $subs {
            package forget $sub
        }
    
}
Reload all the packages that are being tested.
  ::xounit::TestSuiteContinuous instproc reloadPackages {}  {
   
        foreach package [ my packages ] {
            my forgetAll $package
        }
        foreach package [ my packages ] {
            package require $package
        }
    
}