src/Testing/SectTest.cc
/* These functions facilitate the running a section test. Recall that each
   section test runs through a series of single tests, ultimately the test 
   returning TRUE/FALSE on completion. However there are several additional 
   facets of section testing.

   1.) Continue Through Failed Tests:   If a single test fails should testing
                                        stop or continue on with single tests
   2.) Recurse Through Single Tests:    If a single test fails should testing
                                        recurse into that test while displaying
                                        specific test outcome features?

      Recursion Levels:   0 = Output Single Test Pass/Fail Results 
                          1 = Output Single Test Full Details 

   These functions assume you want some output text from running the tests,
   otherwise you would just use the TestLevel function directly, right?       */
These functions facilitate the running a section test. Recall that each
section test runs through a series of single tests, ultimately the test
returning TRUE/FALSE on completion. However there are several additional
facets of section testing.



Recursion Levels:   0 = Output Single Test Pass/Fail Results
1 = Output Single Test Full Details


These functions facilitate the running a section test . Recall that each section test runs through a series of single tests ultimately the test returning TRUE / FALSE on completion . However there are several additional facets of section testing . Recursion Levels : 0 = Output Single Test Pass / Fail Results 1 = Output Single Test Full Details
int SectTest::AskRun(std::ostream& ostr)
  {
  int keepon=0;
  std::string yn;
  std::cout << "\n\t" << "Proceed Through Failed Tests [y,n]? ";
  std::cin >> yn;
  if(yn == "y") keepon=1;
  int recurse = 1;
  std::cout << "\n\t" << "Recurse Into Failed Single Tests [y,n]? ";
  std::cin >> recurse;
  TestRunLevel = 0;				
  TestSingles(ostr, keepon, recurse);		
  Header(ostr);					
  Results(ostr);                                
  if(!TestStatus && recurse>=1)                  
    ResRec(ostr, keepon, recurse--);            
  return TestStatus;
  }
int SectTest :: AskRun ( std :: ostream & ostr ) { int keepon = 0 ; std :: string yn ; std :: cout << " \n \t " << " " ; std :: cin >> yn ; if ( yn == " " ) keepon = 1 ; int recurse = 1 ; std :: cout << " \n \t " << " " ; std :: cin >> recurse ; TestRunLevel = 0 ; TestSingles ( ostr , keepon , recurse ) ; Header ( ostr ) ; Results ( ostr ) ; if ( ! TestStatus && recurse >= 1 ) ResRec ( ostr , keepon , recurse -- ) ; return TestStatus ; }
These functions facilitate the running a section test.
These functions facilitate the running a section test .
// Set Testing Silent // Run The Single Tests // Output Section Header // Output Section Results // If any single test failed // examine it in detail