src/Testing/GamTest.cc
/* These functions facilitate the running of a GAMMA test. Recall that each 
   test runs through a series of module tests, ultimately the test returning
   TRUE/FALSE on completion. However there are several additional facets of
   GAMMA testing.
 
   1.) Continue Through Failed Tests:  If a module test fails should testing
                                       stop or continue on to the next module
   2.) Recurse Through Class Tests:    If a module test fails should testing
                                       recurse into class tests for that
                                       module , displaying specific failures?

      Recursion Levels:    0 = Output Module  Test Pass/Fail Results 
                           1 = Output Class   Test Pass/Fail Results 
                           2 = Output Section Test Pass/Fail Results 
                           3 = Output Single  Test Pass/Fail Results 
                           4 = Output Single  Test Full Details 
 
   These functions assume you want some output text from running the tests,
   otherwise you would just use the TestMods function directly, right?      */
These functions facilitate the running of a GAMMA test. Recall that each
test runs through a series of module tests, ultimately the test returning
TRUE/FALSE on completion. However there are several additional facets of
GAMMA testing.






These functions facilitate the running of a GAMMA test . Recall that each test runs through a series of module tests ultimately the test returning TRUE / FALSE on completion . However there are several additional facets of GAMMA testing .
int GamTest::AskRun(ostream& ostr)
  {
  int keepon=0;
  string yn;
  ostr << "\n\t" << "Proceed Through Failed Tests [y,n]? ";
  cin >> yn;
  if(yn == "y") keepon=1;
  int recurse = 1;
  ostr << "\n\t" << "Failed Module Recursion Levels [0,4]? ";
  cin >> recurse;
  TestRunLevel = 0;                             
  TestMods(ostr, 0, keepon);                    
  Header(ostr);                                 
  Results(ostr, keepon);                        
  if(!TestStatus && recurse>=1)                 
     ResRec(ostr, keepon, recurse--);		
  return TestStatus;
  }
int GamTest :: AskRun ( ostream & ostr ) { int keepon = 0 ; string yn ; ostr << " \n \t " << " " ; cin >> yn ; if ( yn == " " ) keepon = 1 ; int recurse = 1 ; ostr << " \n \t " << " " ; cin >> recurse ; TestRunLevel = 0 ; TestMods ( ostr , 0 , keepon ) ; Header ( ostr ) ; Results ( ostr , keepon ) ; if ( ! TestStatus && recurse >= 1 ) ResRec ( ostr , keepon , recurse -- ) ; return TestStatus ; }
These functions facilitate the running of a GAMMA test.
These functions facilitate the running of a GAMMA test .
// Set testing silent // Run the GAMMA test // Output test header // Output test results // If any module test failed // examine them in detail