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

   2.) Continue Through Failed Tests:   If a section test fails should testing
                                        stop or continue on to the section next
   3.) Recurse Through Single Tests:    If a section test fails should testing
                                        recurse into single tests for that
                                        section, displaying specific failures?
  
      Recursion Levels:   0 = Output Section Test Pass/Fail Results
                          1 = Output Single  Test Pass/Fail Results 
                          2 = 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 class test. Recall that each class
test runs through a series of section tests, ultimately the test returning
TRUE/FALSE on completion. However there are several additional facets of
class testing.



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


These functions facilitate the running a class test . Recall that each class test runs through a series of section tests ultimately the test returning TRUE / FALSE on completion . However there are several additional facets of class testing . Recursion Levels : 0 = Output Section Test Pass / Fail Results 1 = Output Single Test Pass / Fail Results 2 = Output Single Test Full Details
int ClassTest::AskRun(std::ostream& ostr)
  {
  int keepon=0;
  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" << "Failed Section Recursion Levels [0,2]? ";
  std::cin >> recurse;
  TestRunLevel = 0;				
  TestSects(ostr, keepon, recurse);		
  Header(ostr);  				
  Results(ostr);				
  if(!TestStatus && recurse>=1)                 
    ResRec(ostr, keepon, recurse--);            
  return TestStatus;
  }
int ClassTest :: AskRun ( std :: ostream & ostr ) { int keepon = 0 ; 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 ; TestSects ( ostr , keepon , recurse ) ; Header ( ostr ) ; Results ( ostr ) ; if ( ! TestStatus && recurse >= 1 ) ResRec ( ostr , keepon , recurse -- ) ; return TestStatus ; }
These functions facilitate the running a class test.
These functions facilitate the running a class test .
// Set testing silent // Run the section tests // Output class header // Output class results // If any section test failed // examine it in detail