Package test_suite :: Module test_suite_runner :: Class Test_suite_runner
[hide private]
[frames] | no frames]

Class Test_suite_runner

source code

Class for running all components of the relax test suite.

This currently includes the following categories of tests:

Instance Methods [hide private]
 
__init__(self, tests=[], from_gui=False, categories=['system', 'unit', 'gui'])
Store the list of tests to preform.
source code
 
run_all_tests(self)
Execute all of the test suite test types.
source code
 
run_gui_tests(self, summary=True)
Execute the GUI tests.
source code
 
run_system_tests(self, summary=True)
Execute the system/functional tests.
source code
 
run_unit_tests(self, summary=True)
Execute the unit tests.
source code
 
summary(self)
Print out a summary of the relax test suite.
source code
 
summary_skipped(self)
Print out information about skipped tests.
source code
Method Details [hide private]

__init__(self, tests=[], from_gui=False, categories=['system', 'unit', 'gui'])
(Constructor)

source code 

Store the list of tests to preform.

The test list should be something like ['N_state_model.test_stereochem_analysis']. The first part is the imported test case class, the second is the specific test.

Parameters:
  • tests (list of str) - The list of tests to preform. If left at [], then all tests will be run.
  • from_gui (bool) - A flag which indicates if the tests are being run from the GUI or not.
  • categories (list of str) - The list of test categories to run, for example ['system', 'unit', 'gui'] for all tests.

run_gui_tests(self, summary=True)

source code 

Execute the GUI tests.

Parameters:
  • summary (bool) - A flag which if True will cause a summary to be printed.

run_system_tests(self, summary=True)

source code 

Execute the system/functional tests.

Parameters:
  • summary (bool) - A flag which if True will cause a summary to be printed.

run_unit_tests(self, summary=True)

source code 

Execute the unit tests.

Parameters:
  • summary (bool) - A flag which if True will cause a summary to be printed.